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 "SpatialSearch" by DavidSmiley
Date Thu, 15 Nov 2012 18:25:54 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 DavidSmiley:
http://wiki.apache.org/solr/SpatialSearch?action=diff&rev1=86&rev2=87

Comment:
Link to SolrAdaptersForLuceneSpatial4

  '''NOTE: Unless otherwise specified, all units of distance are kilometers and points are
in degrees of latitude,longitude.'''
  
  = QuickStart =
- If you haven't already, get [[Solr3.4]] or a recent nightly build of [[Solr4.0]], start
the example server and index the example data as shown in the [[http://lucene.apache.org/solr/tutorial.html|solr
tutorial]].  With the Solr server running, you should be able to click on the example links
and see real responses.
+ If you haven't already, download Solr, start the example server and index the example data
as shown in the [[http://lucene.apache.org/solr/tutorial.html|solr tutorial]].  With the Solr
server running, you should be able to click on the example links and see real responses.
  
  In the example data, certain documents have a field called "store" (with a fieldType named
"location" implemented via !LatLonType).  Some of the points in the example data are:
  
@@ -204, +204 @@

  === 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 [[http://mathworld.wolfram.com/SphericalCap.html|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.
  

Mime
View raw message