最终发现我需要使用
span查询的组合,从而对模糊性和倾斜度进行了大量的微调。我需要添加一个函数来手动标记我的短语并以编程方式添加到“子句”数组中:
{"query":{ "span_near": { "clauses": [ { "span_multi": { "match": { "fuzzy": { "content": { "fuzziness": "2", "value": "word" } } } } }, { "span_multi": { "match": { "fuzzy": { "content": { "fuzziness": "2", "value": "another" } } } } } ], "slop": 1, "in_order": "true"


