我有一个用于编辑ElasticSearch存储库中的记录的代码:
client.execute {
update(id).in(indexName).script("ctx._source." + query)
}
而且我不知道要给
query
变量使用什么字符串。索引如下所示:
[
{
"lang": "ru",
"deleted": false,
...
}
]
我应该将
deleted
更改为true
最佳答案
你是对的
"deleted = true"
关于scala - ElasticSearch:使用代码中的查询更改字段值,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59942882/