Php 我可以在elasticsearch的大多数_字段中使用Fuzzynes吗?
在我的项目中,我需要优秀的自动完成结果与智能引信,但在我的弹性搜索,它的行为奇怪。 例如 产品是,, 阿穆尔 奶酪 帕内尔 椰子 油 中国人 如果我按“切”,它也会通过模糊显示椰子。 我在逗号分隔的字段中有标记。所以我也需要结果,比如“标签”中的奶酪 如何实现Php 我可以在elasticsearch的大多数_字段中使用Fuzzynes吗?,php,elasticsearch,Php,elasticsearch,在我的项目中,我需要优秀的自动完成结果与智能引信,但在我的弹性搜索,它的行为奇怪。 例如 产品是,, 阿穆尔 奶酪 帕内尔 椰子 油 中国人 如果我按“切”,它也会通过模糊显示椰子。 我在逗号分隔的字段中有标记。所以我也需要结果,比如“标签”中的奶酪 如何实现 "track_total_hits": true, "query": { "multi_match" : { "fields&q
"track_total_hits": true,
"query": {
"multi_match" : {
"fields" : ["product_title", "product_alias",
"sub_category_name", "category_name","product_tags","product_brands"],
"query" : "color",
"type" : "most_fields",
"fuzziness": 3
}
}
我的搜索查询代码块。
product_brands和category_name列为关键字类型,其他列为文本类型,并在映射中使用搜索分析器
我怎么了