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 Mon, 05 Sep 2011 17:08:52 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=67&rev2=68

  
   . [[http://localhost:8983/solr/select?wt=json&indent=true&fl=name,store&q=*:*&fq={!geofilt}&sfield=store&pt=45.15,-93.85&d=50&sort=geodist()%20asc|...&q=*:*&fq={!geofilt}&sfield=store&pt=45.15,-93.85&d=50&sort=geodist()
asc]]
  
+ The geodist() function supports parameters:
+  . param1: the sfield
+  . param2: the latitude (pt)
+  . param3: the longitude (pt)
+ 
+ This returns the as the score - the closest distance for 2 points that the user wants to
check around.
+ 
+  . http://localhost:8983/solr/provs2/select?q={!func}min(geodist(store_lat_lon,37.7,-122.4),geodist(store_lat_lon,39.7,-105))&sort=min(geodist(store_lat_lon,37.7,-122.4),geodist(store_lat_lon,39.7,-105))
asc&fl=city_state,store_lat_lon,score&rows=200
+ 
+ 
  == Returning the distance ==
  <!> [[Solr4.0]]
  

Mime
View raw message