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

SimilarityBase does not pass docId in the score method for use of FieldCache or DocValues

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 4.0, 4.1, 4.2, 4.4, 4.3.1
    • None
    • core/query/scoring
    • None
    • New

    Description

      SimilarityBase does not pass docId in the score method for use of FieldCache or DocValues.

      If the intent of extending SimilarityBase is to use a FieldCache or NumericDocValuesField as part of the scoring, this is not possible because SimilarityBase does not pass on the docId as one of the parameters of the score method. This parameter should be added to the score method so that fieldCache or NumericDocValues can be used when extending SimilarityBase.

      Attachments

        Activity

          People

            Unassigned Unassigned
            rwoolf Ross Woolf
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: