lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Male (JIRA)" <>
Subject [jira] [Commented] (LUCENE-4208) Spatial distance relevancy should use score of 1/distance
Date Fri, 14 Sep 2012 13:09:07 GMT


Chris Male commented on LUCENE-4208:

Things are looking pretty good, we're almost there.  

- Where are we on multi-valued fields? In the documentation on makeDistanceValueSource it
doesn't say what happens when multiple values are indexed.  Do we support that in the ValueSource
implementations? is the behaviour undefined? If it is supposed to be defined, can we document
- "Returns a ValueSource useful as a score" Can we drop this claim? Part of the reason we've
moved to having ConstantScoreQuerys is that it isn't clear what the score for the queries
should be.  This value isn't useful for every spatial operation or implementation.

Once these have gotten addressed, I'm +1 for committing.
> Spatial distance relevancy should use score of 1/distance
> ---------------------------------------------------------
>                 Key: LUCENE-4208
>                 URL:
>             Project: Lucene - Core
>          Issue Type: New Feature
>          Components: modules/spatial
>            Reporter: David Smiley
>             Fix For: 4.0
>         Attachments: LUCENE-4208_makeQuery_return_ConstantScoreQuery_and_remake_TwoDoublesStrategy.patch,
> 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
For more information on JIRA, see:

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

View raw message