1.update_by_query

PUT myindex/_doc/1
{
  "name":"a"
}

POST myindex/_update_by_query
{
  "script":{
    "lang":"painless",
    "inline": "ctx._source.newfield='newvalue'"
  }
}
GET myindex/_mapping

相关文章:

  • 2021-05-04
猜你喜欢
  • 2021-09-15
  • 2022-02-10
  • 2021-06-12
  • 2021-09-01
  • 2021-07-02
  • 2021-08-18
相关资源
相似解决方案