开发者

Solr Copyfield on dynamic fields regexp issue

开发者 https://www.devze.com 2023-02-17 09:52 出处:网络
I\'m trying to copy some dynamic fields for spellchecking. However, the . Below are the relevant fields from schema.xml:

I'm trying to copy some dynamic fields for spellchecking. However, the . Below are the relevant fields from schema.xml:

&l开发者_高级运维t;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 doesn't 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 doesn't the first option work?


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

0

精彩评论

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