gpt4 book ai didi

search - 仅更新 elasticsearch 中的特定字段值

转载 作者:行者123 更新时间:2023-11-29 02:43:37 25 4
gpt4 key购买 nike

是否可以在不覆盖其他字段的情况下更新 elasticsearch 中的某些特定字段值。 ?

最佳答案

作为对此答案的基于代码的贡献,可以使用以下查询:

POST /index/type/100100471/_update
{
"doc" : {
"yourProperty" : 10000
}
}

此查询更新 yourProperty 仅属性

结果,出现了这个响应:

{
"_index": "index",
"_type": "type",
"_id": "100100471",
"_version": 1,
"_shards": {
"total": 0,
"successful": 1,
"failed": 0
}
}

关于search - 仅更新 elasticsearch 中的特定字段值,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19563215/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com