ES条件更新,ES条件部分更新
程序员文章站
2024-03-25 12:51:22
...
POST company_classified_un_sensitive4/_update_by_query
{
"script": {
"source": "ctx._source['regionCode1']=65000;",
"lang": "painless"
},
"query": {
"bool": {
"must": [
{
"exists": {
"field": "highTechPeriod"
}
}
],
"must_not": [
{
"term": {
"regionCode1": {
"value": 650000
}
}
}
]
}
}
}
下一篇: es根据条件更新数据