Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-4208

Spatial distance relevancy should use score of 1/distance

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 4.0
    • modules/spatial
    • None
    • New

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              dsmiley David Smiley
              dsmiley David Smiley
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: