elasticsearch批量更新全部文档的某个字段

POST property_sql/property_info/_update_by_query
{
  "script": {
    "lang": "painless",
    "inline": "ctx._source.published = 1"
  }
}

效果
在这里插入图片描述

posted @ 2018-09-26 16:03  qwer78  阅读(70)  评论(0)    收藏  举报