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=30&rev2=31

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

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

Reply via email to