是否可以访问在update_by_query的轻松脚本中当前搜索命中匹配的命名查询?
即对于此查询,是否可以从更新脚本中判断文档是否匹配condition_1
或condition_2
?
"query": {
"bool": {
"should": [
{
"script": {
"script": "...",
"_name" : "condition_1"
}
},
{
"script": {
"script": "...",
"_name" : "condition_2"
}
}
]
}
}