5
如何向Elasticsearch索引中的现有文档添加其他属性。将其他属性添加到现有文档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"
我的坏。没有仔细看文件。非常感谢。 – user2512324
此链接已关闭,新的api文档位于此处:[ES更新API](http://www.elastic.co/guide/en/elasticsearch/reference/current/docs-update.html) –