update_by_query是否显示matched_queries数组?

时间:2019-12-09 10:10:43

标签: elasticsearch elasticsearch-painless

是否可以访问在update_by_query的轻松脚本中当前搜索命中匹配的命名查询?

即对于此查询,是否可以从更新脚本中判断文档是否匹配condition_1condition_2

  "query": {
    "bool": {
      "should": [
        {
          "script": {
            "script": "...",
            "_name" : "condition_1"
          }
        },
        {
          "script": {
            "script": "...",
            "_name" : "condition_2"
          }
        }
      ]
    }
  }

0 个答案:

没有答案