https://www.elastic.co/guide/cn/elasticsearch/guide/current/partial-updates.html
update 請求最簡單的一種形式是接收文檔的一部分作為 doc 的參數, 它只是與現有的文檔進行合並。對象被合並到一起,覆蓋現有的字段,增加新的字段。
POST /website/blog/1/
{
"title": "My first blog entry",
"text": "Just trying this out..."
}
例如,我們增加字段 tags 和 views 到我們的博客文章,如下所示:
POST /website/blog/1/_update
{
"doc" : {
"tags" : [ "testing" ],
"views": 0
}
}