lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Smiley (JIRA)" <j...@apache.org>
Subject [jira] [Created] (LUCENE-4208) Spatial distance relevancy should use score of 1/distance
Date Tue, 10 Jul 2012 17:16:34 GMT
David Smiley created LUCENE-4208:
------------------------------------

             Summary: Spatial distance relevancy should use score of 1/distance
                 Key: LUCENE-4208
                 URL: https://issues.apache.org/jira/browse/LUCENE-4208
             Project: Lucene - Java
          Issue Type: New Feature
          Components: modules/spatial
            Reporter: David Smiley
             Fix For: 4.0


The SpatialStrategy.makeQuery() at the moment uses the distance as the score (although some
strategies -- TwoDoubles if I recall might not do anything which would be a bug).  The distance
is a poor value to use as the score because the score should be related to relevancy, and
the distance itself is inversely related to that.  A score of 1/distance would be nice.  Another
alternative is earthCircumference/2 - distance, although I like 1/distance better.  Maybe
use a different constant than 1.

Credit: this is Chris Male's idea.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


Mime
View raw message