Solr可以提供就地自动校正吗? 像Goggle一样:
如果是,那么请告诉我怎么样?
它是Solr配置吗? 在得到Solr的建议后,还是一些额外的手工编码逻辑?
因为我已经在使用Solr的建议器组件而且我没有进行这种就地自动校正。
Is possible in Solr to provide an in-place auto-correction? Like Goggle:
If yes, then please tell me how?
Is it a Solr configuration? or some extra hand-coded logic after I get Solr's suggestions?
Because I'm already using Solr's suggester component and I'm not getting this in-place auto-correction.
最满意答案
只需使用solr spellCheck组件即可。 建议组件已经重用了很多东西。 因此,添加更正的建议应该很容易。
请参阅http://wiki.apache.org/solr/Suggester和http://wiki.apache.org/solr/SpellCheckComponent#spellcheck.collateExtendedResults
您可以使用collationQuery确保单击时的搜索结果。
Just use the solr spellCheck component. The suggest component reuses already a lot of stuff. So it should be quite easy to add corrected suggestions.
See http://wiki.apache.org/solr/Suggester and http://wiki.apache.org/solr/SpellCheckComponent#spellcheck.collateExtendedResults
You can use the collationQuery to ensure search results on click.
更多推荐
发布评论