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 Tue, 06 Sep 2011 03:03:03 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=72&rev2=73

  
  This returns the as the score - the closest distance for 2 points that the user wants to
check near (Denver and San Francisco):
  
-  . http://localhost:8983/solr/provs2/select?q=*:*&sort=min(geodist(store_lat_lon,37.7,-122.4),geodist(store_lat_lon,39.7,-105))%20asc&fl=store_lat_lon,score
+  . [[http://localhost:8983/solr/provs2/select?q=*:*&sort=min(geodist(store_lat_lon,37.7,-122.4),geodist(store_lat_lon,39.7,-105))%20asc&fl=store_lat_lon,score|...&sort=min(geodist(store_lat_lon,37.7,-122.4),geodist(store_lat_lon,39.7,-105))%20asc]]
  
  Or
  
-  . 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=score%20asc&fl=store_lat_lon,score
+  . [[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=score%20asc&fl=store_lat_lon,score|...&q={!func}min(geodist(store_lat_lon,37.7,-122.4),geodist(store_lat_lon,39.7,-105))&sort=score%20asc]]
  
  == Returning the distance ==
  <!> [[Solr4.0]]

Mime
View raw message