You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by Apache Wiki <wi...@apache.org> on 2013/08/23 07:21:56 UTC

[Solr Wiki] Update of "SpatialSearch" by DavidSmiley

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=88&rev2=89

Comment:
Link to new page SpatialClustering

  
  In addition to {{{geofilt}}}, {{{geodist}}} and {{{bbox}}}, the !LatLonType supports field queries such as {{{field:10,20}}} and range queries such as {{{field:[10,20 TO 30,40]}}}.
  
+ == Clustering / Heatmap ==
+ For info on spatially aggregating nearby points to reduce the raw coordinate density:
+ SpatialClustering
+ 
  === 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.