update_by_query ingest pipeline

Posted hixiaowei

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了update_by_query ingest pipeline相关的知识,希望对你有一定的参考价值。

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

以上是关于update_by_query ingest pipeline的主要内容,如果未能解决你的问题,请参考以下文章