Azure 搜索 API C# 模糊/拼写错误未按预期工作
Azure Search API C# Fuzzy / Misspellings Not Working As Expected
我设置了一个索引,其中包含大约 1000 个项目。我正在执行以下 API 调用以获取结果。
var parameters = new SearchParameters
{
Select = new[] { "pageTitle", "pageUrl", "metaDescription" },
Top = 5,
QueryType = QueryType.Full
};
var results = indexer.Documents.Search<IndexPageData>("childrens bed frames~", parameters);
从获取数据的角度来看,它按预期工作。但是如果我用 'Childrns' 或 'Chidrens' 之类的东西拼写错误 'Childrens'... 我是否觉得 fuzzy/mis-spellings 搜索会理解 return 相同的结果或很像?
但我得到了完全不同的结果,与正确拼写的术语相比,它们的匹配度非常差。
我是否遗漏了 API 的内容?
"Fuzzy" 搜索目前仅适用于建议者,see this. You will have to rely on your language analyser 以正确标记单词并为您提供预期结果。
根据 Aaron 的评论。我错过了每个单词末尾的 tilda
孩子们~床~架子~
现在正在捕获 "childrn bed frames" 等内容...
我设置了一个索引,其中包含大约 1000 个项目。我正在执行以下 API 调用以获取结果。
var parameters = new SearchParameters
{
Select = new[] { "pageTitle", "pageUrl", "metaDescription" },
Top = 5,
QueryType = QueryType.Full
};
var results = indexer.Documents.Search<IndexPageData>("childrens bed frames~", parameters);
从获取数据的角度来看,它按预期工作。但是如果我用 'Childrns' 或 'Chidrens' 之类的东西拼写错误 'Childrens'... 我是否觉得 fuzzy/mis-spellings 搜索会理解 return 相同的结果或很像?
但我得到了完全不同的结果,与正确拼写的术语相比,它们的匹配度非常差。
我是否遗漏了 API 的内容?
"Fuzzy" 搜索目前仅适用于建议者,see this. You will have to rely on your language analyser 以正确标记单词并为您提供预期结果。
根据 Aaron 的评论。我错过了每个单词末尾的 tilda
孩子们~床~架子~
现在正在捕获 "childrn bed frames" 等内容...