Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Solr Wiki" for change 
notification.

The following page has been changed by PeterWolanin:
http://wiki.apache.org/solr/FAQ

The comment on the change is:
updating wildcard copyField after getting exception 

------------------------------------------------------------------------------
  
  == How do I use copyField with wildcards? ==
  
- The `<copyField>` directive allows wildcards in the source, so that several 
fields can be copied into one destination field without having to specify them 
all individually.  A common use case is something like:
+ The `<copyField>` directive allows wildcards in the source, so that several 
fields can be copied into one destination field without having to specify them 
all individually.  All dest fields must be full field names -- not wildcard 
expressions. A common use case is something like:
- 
- requires that the source and dest fields both be full field names -- not 
wildcard expressions.  so if you have the following dynamic fields defined...
  
  {{{
     <copyField source="*_t"  dest="text" />
  }}}
  
- This tells Solr to copy the contents of any field that ends in "_t" to the 
"text" field.  This is particularly useful when you have a large, and possibly 
changing, set of fields you want to index into a single field.  With the 
example above, you could start indexing fields like "description_t", 
"editorial_review_t", and so on, and all their content would be indexed in the 
"text" field.  
+ This tells Solr to copy the contents of any field that ends in "_t" to the 
"text" field.  This is particularly useful when you have a large, and possibly 
changing, set of fields you want to index into a single field.  With the 
example above, you could start indexing fields like "description_t", 
"editorial_review_t", and so on, and all their content would be indexed in the 
"text" field.  It's important in this example that the "text" field be defined 
in schema.xml as multiValued since you intend to copy multiple sources into the 
single destination.
  
  Note that you can use the wildcard copyField syntax with or without similar 
dynamicField declarations.  Thus you could choose to index the "description_t", 
"editorial_review_t" fields individually with a dynamicField like
  

Reply via email to