lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <>
Subject [Solr Wiki] Update of "SpatialSearch" by AlexandreRafalovitch
Date Tue, 08 Jan 2013 07:59:05 GMT
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 AlexandreRafalovitch:

Now that Solr 4 is out, it makes sense to indicate new Geo type more prominently on the page

  '''NOTE: Unless otherwise specified, all units of distance are kilometers and points are
in degrees of latitude,longitude.'''
+ = New Solr 4 Spatial Field Types =
+ Lucene 4 has a new spatial module that replaces the older one described below. The Solr
adapters for it are documented here: SolrAdaptersForLuceneSpatial4. The rest of this document
is about the still-supported older approach.
  = QuickStart =
  If you haven't already, download Solr, start the example server and index the example data
as shown in the [[|solr tutorial]].  With the Solr
server running, you should be able to click on the example links and see real responses.
@@ -25, +28 @@

  <field name="store">40.7143,-74.006</field>     <!-- NYC store -->
  <field name="store">37.7752,-122.4232</field>   <!-- San Francisco store
  == Schema Configuration ==
@@ -204, +208 @@

  === Filtering Caveats ===
  For the {{{bbox}}} filter, when the bounding box includes a pole, the !LatLonType will switch
from producing a bounding box to a "bounding bowl" (i.e. a [[|spherical
cap]]) whereby it will include all values that are North or South of the latitude of the would
be bounding box (the lower left and the upper  right) that is closer to the equator.  In other
words, we still calculate what the coordinates of the upper right corner and the lower  left
corner of the box would be just as in all other filtering cases,  but we then take the corner
that is closest to the equator (since it  goes over the pole it may not be the lower left,
despite the name) and  do a latitude only filter.  Obviously, this means there will be more
 matches than a pure bounding box match, but the query is much easier to  construct and will
likely be faster, too.
- = New Solr 4 Spatial Field Types =
- Lucene 4 has a new spatial module that replaces the older one before it.  The Solr adapters
for it are documented here: SolrAdaptersForLuceneSpatial4
  = Spatial Options Under Development =
  SpatialSearchDev -- Covers things like Geohash (supports multivalue lat-lon points), other
distance functions, etc.

View raw message