如何在Solr中提供就地自动校正?(How to provide in

编程入门 行业动态 更新时间:2024-10-14 12:26:11
如何在Solr中提供就地自动校正?(How to provide in-place autocorrection in Solr?)

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.collat​​eExtendedResults

您可以使用collat​​ionQuery确保单击时的搜索结果。

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.

更多推荐

本文发布于:2023-07-06 07:40:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1047413.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:如何在   Solr   provide

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!