【问题标题】:Spell checking with Solr使用 Solr 进行拼写检查
【发布时间】:2018-06-28 01:17:18
【问题描述】:

我使用 Solr 来索引文档(pdf、word、.txt 等)。我需要使用拼写检查器(法语),但我不知道该怎么做。我只在“内容”字段上需要这个函数,这个字段的类型是text_general

【问题讨论】:

    标签: solr spell-checking


    【解决方案1】:

    拼写检查器使用content of your index to build the terms that are used for suggestions - 没有语言配置,因为只要已编入索引的内容是法语,返回给用户的建议将基于这些术语。

    如果您使用的是 FileBasedSpellChecker 则例外,您可以在其中提供具有正确拼写的术语字典。

    # spellcheck.q is only necessary if you want to use a different query than your actual query
    &spellcheck=true&spellcheck.q=foo
    

    【讨论】:

    • 谢谢,词干也是一样的吗?例如,我想用“petite”或“petits”找到“petit”这个词
    猜你喜欢
    • 1970-01-01
    • 2016-01-22
    • 1970-01-01
    • 2013-09-09
    • 2011-03-01
    • 1970-01-01
    • 1970-01-01
    • 2012-08-20
    相关资源
    最近更新 更多