1、單字段 多個搜索值 的 模糊查詢
使用 bool 的 should 去查詢。
{
"query": {
"bool": {
"must": [
{
"bool": {
"should": [
{
"wildcard": {
"mobile": {
"value": "13*"
}
}
},
{
"wildcard": {
"mobile": {
"value": "17712345986"
}
}
}
]
}
}
]
}
}
}