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) –