lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Solr Wiki] Update of "SchemaXml" by ChrisHarris
Date Wed, 24 Oct 2007 22:00:29 GMT
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:

Mime
View raw message