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 2010/08/26 20:24:51 UTC

[Solr Wiki] Update of "SpatialSearch" by GrantIngersoll

Dear Wiki user,

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

The "SpatialSearch" page has been changed by GrantIngersoll.
http://wiki.apache.org/solr/SpatialSearch?action=diff&rev1=27&rev2=28

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

  
  ==== Example ====
  {{{
- <fieldType name="latLon" class="solr.LatLonType"subFieldSuffix="_latLon"/>
+ <fieldType name="latLon" class="solr.LatLonType" subFieldSuffix="_latLon"/>
  ...
  <field name="store_lat_lon" type="latLon" indexed="true" stored="true"/>
  }}}
@@ -74, +74 @@

  }}}
  = Indexing =
  Indexing is handled by the various !FieldType instances in the schema.  At the most basic, the user can represent their own spatial data using ints, floats or doubles.  Beyond that, the !PointType, !GeoHashField and !LatLonType can be used to index spatial information automatically.
+ 
+ When indexing, the format is something like:
+ {{{
+ <field name="store_lat_lon">12.34,-123.45</field>
+ }}}
+ 
+ (It can vary based on the number of values.  When using a !LatLonType or a !GeoHashField, it is always latitude, then longitude.
  
  = Filtering =
  There are several different ways to filter in spatial search:
@@ -116, +123 @@

  
  https://issues.apache.org/jira/browse/SOLR-1578 See https://issues.apache.org/jira/browse/SOLR-1568
  
+ = Other Caveats =
+ 
+ Unless otherwise specified, all units are kilometers.
+ 
  = Known Issues =
  See https://issues.apache.org/jira/browse/SOLR-773 for tracking