开发者

Solr spellcheck configuration

I开发者_开发技巧 am trying to build the spellcheck index with IndexBasedSpellChecker

<lst name="spellchecker">
  <str name="name">default</str>
  <str name="field">text</str>
  <str name="spellcheckIndexDir">./spellchecker</str>
</lst>

And I want to specify the dynamic field "*_text" as the field option:

<dynamicField name="*_text" stored="false" type="text" multiValued="true" indexed="true">

How it can be done?


Copy all the text fields to one field:

<copyField source="*_text"  dest="textSpell" />

and then build spellcheck index from field "textSpell"

<lst name="spellchecker">
  <str name="name">default</str>
  <str name="field">textSpell</str>
  <str name="spellcheckIndexDir">./spellchecker</str>
</lst>


This will be helpful Implementation of solr spellchecker and spellCheckComponent

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜