es删除字段

POST 索引/_update_by_query
{
  "script": "ctx._source.remove('{字段名}')",
  "query": {
    "bool": {
      "must": [
        {
          "exists": {
            "field": "字段名"
          }
        }
      ]
    }
  }
}

  

posted @ 2022-11-19 19:06  NAVYSUMMER  阅读(764)  评论(0)    收藏  举报
交流群 编程书籍