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
posted @ 2020-01-12 12:14  littlevigra  阅读(204)  评论(0编辑  收藏  举报