lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erick Erickson (Created) (JIRA)" <>
Subject [jira] [Created] (SOLR-3277) Dynamic fields do not respect concrete fields that happen to match a pattern.
Date Mon, 26 Mar 2012 18:48:27 GMT
Dynamic fields do not respect concrete fields that happen to match a pattern.

                 Key: SOLR-3277
             Project: Solr
          Issue Type: Bug
    Affects Versions: 3.6, 4.0
            Reporter: Erick Erickson
            Priority: Minor
             Fix For: 4.0

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.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


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

View raw message