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 GrantIngersoll
Date Thu, 23 Sep 2010 00:55:49 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 GrantIngersoll.


+ For !LatLonType, the sfilt command calculates a bounding box by calculating the East and
West Longitudes and the North and South Latitudes of a box that transcribes the circle with
radius d (using hsin).  There are other ways that this can be implemented by overriding the
createSpatialQuery method on !LatLonType.
+ For !PointType, the bounding box is calculated by standard rectangular coordinate system
  == Filtering Caveats ==
  === North/South Poles ===
  When the bounding box includes a Pole, then the !LatLonType will automatically 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.

View raw message