## 精确度查询和近似(模糊)匹配结合
## match近似匹配,match_phrase精确匹配
GET customer/_search
{
"query": {
"bool": {
"must": [
{
"match": {
"introduce": "Java spark"
}
}
],
"should": [
{
"match_phrase": {
"introduce": {
"query": "Java spark",
"slop": 10
}
}
}
]
}
}
}
ES7.16.2基础操作之近似匹配和精准度匹配相结合(四)
最新推荐文章于 2024-03-17 17:50:26 发布