copy_to字段内容如何清除

Elasticsearch | 作者 telx | 发布于4 天前 | 阅读数:72

对于一般的字段,我通过update_by_query在脚本ctx._source.remove删除掉这个字段的数据
POST order_test/_update_by_query
{
"script": {
"source": "ctx._source.remove(\"user_phone\")"
},
"query": {
"exists": {"field": "user_phone"}
}
}
 
但我有个copy_to字段store设为true,我按照上面的方式执行还是删除不了,看解释是说是单独存储的,这样应该怎么删除呢
已邀请:

要回复问题请先登录注册