You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-commits@lucene.apache.org by Apache Wiki <wi...@apache.org> on 2007/10/25 00:00:29 UTC

[Solr Wiki] Update of "SchemaXml" by ChrisHarris

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 ChrisHarris:
http://wiki.apache.org/solr/SchemaXml

The comment on the change is:
Adding section "Indexing same data in multiple fields"

------------------------------------------------------------------------------
      <dynamicField name="*_i"  type="integer"  indexed="true"  stored="true"/>
  }}}
  
+ === Indexing same data in multiple fields ===
+ 
+ Note that, with textual data, it will often make sense to take what's logically speaking a single field (e.g. product name) and index it into several different Solr fields, each with different field options and/or analyzers.
+ 
+ As an example, if I had a field with a list of authors, such as:
+ 
+   ''Schildt, Herbert; Wolpert, Lewis; Davies, P.''
+   
+ I might want to index the same data differently in three different fields (perhaps using the Solr [:SchemaXml#Copy Fields:copyField] directive):
+   * For searching: Tokenized, case-folded, punctuation-stripped:
+       schildt / herbert / wolpert / lewis / davies / p
+   * For sorting: Untokenized, case-folded, punctuation-stripped:
+       schildt herbert wolpert lewis davies p
+   * For faceting: Primary author only, using a `solr.StringField`:
+       Schildt, Herbert
+ 
+ (See also SolrFacetingOverview.)
+ 
  === Expert field options ===
  
  The storage of Lucene term vectors can be triggered using the following field options: