lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Smiley (" <>
Subject Re: Spatial Search
Date Mon, 09 Jul 2012 15:40:56 GMT
  The geo query's score happens to be the distance but I don't expect that
to remain so.  I plan for it to be 1/distance which is a better relevancy
value -- a "score" is supposed to be about relevancy after all.  If you want
to get the distance for a search result, I recommend calculating it on the
client.  It's not hard; you can find code samples for the Haversine
algorithm all over the web.  I want to eventually add a Solr function that
can return the distance in the search results, and even pre-filter the
values by the query shape -- useful for multi-value geo.

~ David

View this message in context:
Sent from the Lucene - Java Users mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message