关于ES数据库的更新修改数据(通过cerebro工具)—_update_by_query
比如上面这个例子:
索引名字/_update_by_query
{
“query”: {
“term”:{
“status”:“waiting”
}
},#query是查询需要修改的范围
“script”: {
“source”: “ctx._source.test_items=‘7,9,10,11’;”
}#script是更新修改的字段数据
}

相关文章:

  • 2021-08-29
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-05
  • 2022-12-23
  • 2022-02-28
猜你喜欢
  • 2022-12-23
  • 2021-08-27
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-05
相关资源
相似解决方案