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, 16 Mar 2010 13:21:02 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.


  Then, to query, the system can use the distance Functions in Solr, as in:
- http://localhost:8983/solr/select/?q=_val_:"recip(dist(2, store, point(34.0232,-81.0664)),1,1,0)"&fl=*,score
+ http://localhost:8983/solr/select/?q=_val_:"recip(dist(2, store, vector(34.0232,-81.0664)),1,1,0)"&fl=*,score
  The above computes the [[|the Euclidean distance]]
from the point (34.0232,-81.0664) to the store's point, asking SOLR to [[|invert
the distance]] (take 1 / the distance) in order to make longer distances come later in the
result list, and finally asking SOLR to return all fields, including the relevancy score.

View raw message