Azure 搜索建议 API - 没有乱序关键字的结果
Azure Search Suggestions API - no results for out of order keywords
我的搜索索引中有一个标题为“1998 John Deere 935”的项目。建议 API 不会 return "John 935" 的任何结果,但搜索 API 会。 API 请求都没有 fuzzy=true。
我是否必须启用模糊搜索才能使这项工作获得建议?我真的希望不会,因为这会大大增加搜索时间。
不幸的是,Azure 搜索 suggesters only support infix matching 用于查找建议候选人。中缀匹配对句首或句中的词组进行灵活匹配,这不是你要找的
这里有另外两个选项:
- 合并搜索 API 与 edgeNGram_v2 token filter when you index data. This could help with partial or incomplete matches. You can learn more about how to use this token filter with the custom analyzers documentation
- 您可以使用 Proximity Search 功能来查找查询中彼此接近的字词。
如果您需要进一步说明或有更多问题,请告诉我。
谢谢,
马特
我的搜索索引中有一个标题为“1998 John Deere 935”的项目。建议 API 不会 return "John 935" 的任何结果,但搜索 API 会。 API 请求都没有 fuzzy=true。
我是否必须启用模糊搜索才能使这项工作获得建议?我真的希望不会,因为这会大大增加搜索时间。
不幸的是,Azure 搜索 suggesters only support infix matching 用于查找建议候选人。中缀匹配对句首或句中的词组进行灵活匹配,这不是你要找的
这里有另外两个选项:
- 合并搜索 API 与 edgeNGram_v2 token filter when you index data. This could help with partial or incomplete matches. You can learn more about how to use this token filter with the custom analyzers documentation
- 您可以使用 Proximity Search 功能来查找查询中彼此接近的字词。
如果您需要进一步说明或有更多问题,请告诉我。
谢谢, 马特