lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erick Erickson <>
Subject copyField and precedence with dynamic fields
Date Mon, 26 Mar 2012 17:22:38 GMT
This seems like it's a JIRA, I couldn't find anything like this that's
already a JIRA on a quick look.

>From a client:

Here's a fragment of a schema file:
   <field name="id" type="string" indexed="true" stored="true"
required="true" />
   <field name="title_text" type="text_general" indexed="true"
stored="true" multiValued="false" />
   <field name="title_phonetic" type="phonetic" indexed="true"
stored="true" multiValued="false" />

   <dynamicField name="*_text" type="text_general" indexed="true"
stored="false" />
   <dynamicField name="*_phonetic" type="phonetic" indexed="true"
stored="false" />
 <copyField source="*_text" dest="*_phonetic" />

Here's an input doc:
    <field name="id">ID1</field>
    <field name="title_text">1st Document</field>
    <field name="description_text">Another field</field>

OK, add the doc with the above schema, and to a q=*:*&fl=*

The response does NOT contain title_phonetic.

It looks like IndexSchema.registerCopyField won't notice that
title_phonetic is a non-dynamic field and make a title_text ->
title_phonetic mapping.

Is this a JIRA or intended or "just not worth fixing"?

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message