【发布时间】:2016-08-03 14:00:58
【问题描述】:
我使用以下自定义分析器创建索引
"analyzers":[
{
"name":"shinglewhite_analyzer",
"@odata.type":"#Microsoft.Azure.Search.CustomAnalyzer",
"charFilters":[
"map_dash"
],
"tokenizer":"whitespace",
"tokenFilters":[
"shingle"
]
}
],
"charFilters":[
{
"name":"map_dash",
"@odata.type":"#Microsoft.Azure.Search.MappingCharFilter",
"mappings":[ "_=> " ]
}
]
问题是输入中的 ice_cream 之类的词不会匹配查询冰淇淋,但它会匹配 icecream。有人可以帮助我了解这是如何工作的吗?如果我做错了什么?
此外,我们希望查询“ice cream”以匹配“ice cream”、“icecream”和“ice and cream”,但优先排序。
【问题讨论】:
标签: tokenize analyzer azure-cognitive-search