ES 正则 查询手机号为移动运营商DSL(性能巨慢):
POST tbcrm_*/memberInfo/_update_by_query
{
"script": {
"source": "ctx._source.operator=1"
},
"query": {
"regexp": {
"mobile": {
"value": "(1[0-9]{8})|((170)[012][0-9]{7})|((1410)[0-9]{7})",
"max_determinized_states": 1000000
}
}
}
}