【发布时间】:2018-06-28 01:17:18
【问题描述】:
我使用 Solr 来索引文档(pdf、word、.txt 等)。我需要使用拼写检查器(法语),但我不知道该怎么做。我只在“内容”字段上需要这个函数,这个字段的类型是text_general。
【问题讨论】:
标签: solr spell-checking
我使用 Solr 来索引文档(pdf、word、.txt 等)。我需要使用拼写检查器(法语),但我不知道该怎么做。我只在“内容”字段上需要这个函数,这个字段的类型是text_general。
【问题讨论】:
标签: solr spell-checking
拼写检查器使用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
【讨论】: