0
我有以下類型爲'tags'的文檔。現在我想更新文件,即我想刪除標籤「你好」。ElasticSearch使用腳本更新屬性值
{
"id": 1,
"tags": [ "hello", "stackoverflow, "promising" ]
}
{
"id": 2,
"tags": [ "stackoverflow, "promising" ]
}
{
"id": 3,
"tags": [ "hello" ]
}
所以是有可能在ElasticSearch使用一個查詢得到以下結果
{
"id": 1,
"tags": [ "stackoverflow, "promising" ]
}
{
"id": 2,
"tags": [ "stackoverflow, "promising" ]
}
{
"id": 3,
"tags": [ ]
}