如何向 Elasticsearch 索引中的现有文档添加其他属性。
$ curl -XPUT 'http://localhost:9200/twitter/tweet/1' -d '{
"user" : "kimchy",
"post_date" : "2009-11-15T14:12:12",
"message" : "trying out Elastic Search"
}'
这将在索引中创建一个文档。如何向文档添加属性?认为
"new_attribute":"new_value"
这会将文档修改为
"user" : "kimchy",
"post_date" : "2009-11-15T14:12:12",
"message" : "trying out Elastic Search"
"new_attribute" :"new_value"