开发者

Solr spellcheck configuration

开发者 https://www.devze.com 2023-01-03 07:39 出处:网络
I开发者_开发技巧 am trying to build the spellcheck index with IndexBasedSpellChecker <lst name=\"spellchecker\">

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

精彩评论

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