lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Smiley (@MITRE.org)" <DSMI...@mitre.org>
Subject Re: Spatial Search
Date Mon, 09 Jul 2012 15:40:56 GMT
Amir,
  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

-----
 Author: http://www.packtpub.com/apache-solr-3-enterprise-search-server/book
--
View this message in context: http://lucene.472066.n3.nabble.com/Spatial-Search-tp3623494p3993925.html
Sent from the Lucene - Java Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message