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 GrantIngersoll
Date Fri, 11 Dec 2009 14:31:03 GMT
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 GrantIngersoll.
http://wiki.apache.org/solr/SchemaXml?action=diff&rev1=35&rev2=36

--------------------------------------------------

     * `compressThreshold=<integer>`
  
  `compressThreshold` is the minimum length required for text compression to be invoked. 
This applies only if `compressed=true`; a common pattern is to set `compressThreshold` on
the field type definition, and turn compression on and off in the individual field definitions.
+ 
+ === Poly Field Types ===
+ /!\ Solr1.5 /!\
+ See https://issues.apache.org/jira/browse/SOLR-1131.  This discusses uncommitted code.
+ 
+ Some !FieldTypes can be "poly" field types.  A Poly !FieldType is one that can potentially
create multiple Fields per "declared" field.  The primary example in Solr is the PointType.
 Depending on the dimension specified, one or more Fields will be created.  For example:
+ {{{
+ <fieldType name="location" class="solr.PointType" dimension="2" subFieldTypes="double"/>
+ }}}
+ 
+ Declares a !FieldType that can be used to represent a point in 2 dimensions (i.e. a lat/lon).
 The subFieldTypes value tells Solr what the underlying representation will be for the values
in the field, in this case a !FieldType called "double".
+ 
+ Thus, a Field declaration like:
+ {{{
+ <field name="store" type="location" indexed="true" stored="true"/>
+ }}}
+ 
+ can be indexed like:
+ {{{
+ <add>
+ <doc>
+ <field name="store">35.9 -79.0</field>
+ </doc>
+ </add>
+ }}}
+ 
+ Underneath the hood, Solr will create two fields (using dynamic fields) to store the information.
  
  == Fields ==
  

Mime
View raw message