views:

212

answers:

1

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?

A: 

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>
Jem