Solr Copyfield for dynamic fields for regular expression

I am trying to copy some dynamic fields to check spelling. However. The following are the relevant fields from schema.xml:

<dynamicField name="*_text_fr" stored="false" type="text_fr" multiValued="true" indexed="true"/>
<dynamicField name="*_text_frs" stored="true" type="text_fr" multiValued="true" indexed="true"/>
<dynamicField name="*_text_frms" stored="true" type="text_fr" multiValued="true" indexed="true"/>

It does not copy anything with:

<copyField source="*_text_fr*" dest="textSpellFr" />

However, it works with:

<copyField source="*_text_fr" dest="textSpellFr" />
<copyField source="*_text_frs" dest="textSpellFr" />
<copyField source="*_text_frms" dest="textSpellFr" />

Why does the first option not work?

+3
source share
1 answer

The names DynamicField and CopyField are not regular expressions. The wildcard *can only be used to indicate a prefix or suffix, but not both.

+8
source

All Articles