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 Bill Bell
Date Sun, 06 Feb 2011 04:39:34 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 Bill Bell.
http://wiki.apache.org/solr/SpatialSearch?action=diff&rev1=45&rev2=46

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

  == Returning the distance ==
  Returning distances (and any arbitrary function query value) is currently under development.
As a temporary workaround, it's possible to obtain distances by using geodist or geofilt as
the only scoring part of the main query.
  
+ == How to combine with a sub-query to expand results ==
+ It is possible to filter by other criteria with an OR clause. Here is an example that says
return by City, State or distance:
+ \/solr/provs/select?fl=*,score&q=*:*&qt=standard&fq=specialties_ids:49&start=0&rows=20&pt=30.2881451,-81.63015&d=40.2336&sfield=store_lat_lon&fq=(state:%22fl%22%20AND%20city:%22Jacksonville%22)%20OR%20_query_:%22%7B!geofilt%7D%\
+ 
+  . [[http://localhost:8983/solr/select?wt=json&indent=true&fl=name,store&q=*:*&fq=(state:%22fl%22%20AND%20city:%22Jacksonville%22)%20OR%200_query_:{!geofilt}&sfield=store&pt=45.15,-93.85&d=50&sort=geodist()%20asc|...&q=*:*&fq=(state:%22fl%22%20AND%20city:%22Jacksonville%22)%20OR%200_query_:{!geofilt}&sfield=store&pt=45.15,-93.85&d=50&sort=geodist()
asc]]
+ 
+ 
  = Advanced Spatial Options - Under Development =
  SpatialSearchDev  -- Covers things like Geohash (supports multivalue lat-lon points), North/South
Pole issues, other distance functions, etc.
  

Mime
View raw message