有复合词,可以写成"handbag“或”handbag“。如果我们在solr索引中有"handbag“,那么在搜索"handbag”时,我如何显示“handbag”的结果。我已经尝试使用多单词同义词解析器。但为此,我必须在同义词文件中添加add handbag=>hand bag。但是这个列表很长。我不能在列表中添加单词。
发布于 2014-03-14 03:46:58
Solr已经提供了一个基于字典的分解过滤器。有关更多详细信息,请查看Solr wiki:https://wiki.apache.org/solr/LanguageAnalysis#Decompounding
https://stackoverflow.com/questions/22386498
复制相似问题