我正在使用elasticsearch版本6.3.0。我想将模糊性与多重匹配一起使用。但没有其他选择。有人能为我提供解决方案吗?提前致谢 查询:
{ "query": {
"bool": {
"must": [
{"function_score": {
"query": {
"multi_match": {
"query": "local",
"fields": [
"user.name^3",
"main_product"
],
"type": "phrase"
}
}
}}
],
"filter": {
"geo_distance": {
"distance": "1000km",
"user.geolocation": {
"lat": 25.55,
"lon": -84.44
}
}
}
}
} }
Run Code Online (Sandbox Code Playgroud)