You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by Apache Wiki <wi...@apache.org> on 2014/08/26 01:16:33 UTC

[Solr Wiki] Update of "SchemaXml" by MarkBennett

Dear Wiki user,

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

The "SchemaXml" page has been changed by MarkBennett:
https://wiki.apache.org/solr/SchemaXml?action=diff&rev1=72&rev2=73

Comment:
Explain asterisk in destination of copyField, and reference new guide

  {{{
   <copyField source="*" dest="text"/>
  }}}
+ 
+ You can also '''automatically generate new field names''' by including an asterisk in '''''both''''' the source and destination fields.  For example, if you have the following copyField directive:
+ 
+ {{{
+  <copyField source="*_t" dest="*_t_facet" />
+ }}}
+ 
+ and then submit a field called `author_t`, the field's value will also be copied to another field called `author_t_facet`, where the word ''"author"'' was matched by the original asterisk in the source attribute, and then that pattern's match text was used to generate the destination field name, via the asterisk in the destination attribute `*_t_facet`, which serves as a field name template.
+ 
+ See also [[https://cwiki.apache.org/confluence/display/solr/Copying+Fields|Copying Fields]] in the new [[https://cwiki.apache.org/confluence/display/solr/Apache+Solr+Reference+Guide|Apache Solr Reference Guide]]
+ 
  === Similarity ===
  
  A (global) `<similarity>` declaration can be used to specify a custom Similarity implementation that you want Solr to use when dealing with your index.  A Similarity can be specified either by referring directly to the name of a class with a no-arg constructor...