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 Tue, 13 Apr 2010 13:31:27 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.


  There are several different ways to filter in spatial search:
   1. By Range Query, as in {{{fq=lat:[-23.0 TO -79.5] AND lon:[56.3 TO 60.3]}}} -- Already
-  1. By the Spatial Filter QParser (!SpatialQParser)  - See
- as in {!sfilt fl=location}&pt=49.32,-79.0&dist=20
+  1. By the Spatial Filter QParser (!SpatialQParser)  - e.g. {!sfilt fl=location}&pt=49.32,-79.0&d=20
   1. Using the "frange" QParser, as in {{{fq={!frange l=0 u=400}hsin(0.57, -1.3, lat_rad,
lon_rad, 3963.205)}}}
  In practice, for those using Solr's field types above, the Spatial Filter !QParser will
automatically make the correct decision about how best to filter.  If an application needs
a specific type of filtering for performance or other needs, the best bet is to extend the
!FieldType in question with your own needs. 
+ == Spatial Filter QParser ==
+ See
+ The following parameters are supported:
  = Sorting = added the ability to sort by function, so
sorting by distance is now simply a matter of sorting using the appropriate distance function,
just like boosting.

View raw message