【发布时间】:2019-08-29 19:07:04
【问题描述】:
我有以下查询来为我的搜索添加模糊性。但是,我现在意识到 match 查询不像 match_phrase 那样考虑搜索字符串中单词的顺序。但是,我无法让 match_phrase 给我模糊的结果。有没有办法让 match 考虑单词之间的顺序和距离?
{
"query": {
"match": {
"content": {
"query": "some search terms like this",
"fuzziness": 1,
"operator": "and"
}
}
}
}
【问题讨论】:
标签: elasticsearch