lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erick Erickson (Created) (JIRA)" <j...@apache.org>
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
                 URL: https://issues.apache.org/jira/browse/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:
<fields>
  <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" />
 </fields>
 <copyField source="*_text" dest="*_phonetic" />

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

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: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message