lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <hossman_luc...@fucit.org>
Subject Re: Question on dynamic fields
Date Mon, 21 Jun 2010 19:00:11 GMT
: which I want to do whole word search only.. I made those 2 fields to be of
: type 'string'.
: 
: <field name="uid" type="string" indexed="true" stored="true"/> 
: 
: I also have a dynamic field with textgen field type as below
: 
: <dynamicField name="*" type="textgen"  indexed="true"  stored="true"
: multiValued="true" /> 
: 
: This dynamic field seems to capture all the data including the data from UID

no .. that doesn't sound right.  if you index something into your "uid" 
field it will go into the "uid" field which has type "string" ... perhaps 
you are mistakinly indexing into the "UID" field (note the capitalization) 
of type "textgen" which exists becase of that dynamic field declaration?

: field.. Now my issue is that I am having a copyfield called Text which I am
: using to copy all the necessary static fields + all dynamic fields ( seems

Your choice of wording here makes me think you don't understand how 
copyField works -- it doesn't copy "static" fields any different from 
"dynamic" fields - there is no distinction between what a field *is" 8 
just how it's declared.  when you use a wildcard in a copyField, you are 
going to copy any field that any document ever has with a name that 
matches that wildcard expresion -- it doesn't matter if that same wild 
card expression is used to declare some fields dynamicly or not....

:  <copyField source="*" dest="text" /> 
:  <copyField source="relationship" dest="text" />                  
:  <copyField source="related_name" dest="text" />        
:  <copyField source="related_type" dest="text" />                  
:  <copyField source="name" dest="text" />                      
:  <copyField source="related_repository" dest="text" />          
:  <copyField source="relationship_repository_name" dest="text" />     
:  <copyField source="repository" dest="text" />     
:  <copyField source="type" dest="text" />      

...after that first line, all of those other copyFields are redundent (and 
i believe result in every one of those fields being copied twice)  The 
first line says "copy every field seen in any documnet to the 'text' 
field"



-Hoss


Mime
View raw message