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

ValueSource.asDoubleValues shouldn't fetch score

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 9.1
    • modules/query
    • None
    • New

    Description

      The ValueSource.asDoubleValuesSource() method bridges the old API to the new one.  It's rather important because boosting a query no longer has an old API; in its place is using this method and passing to FunctionScoreQuery.boostByValue.  Unfortunately, asDoubleValuesSource will fetch/compute the score for the document in order to expose it in a Scorable on the "scorer" key of the context Map.  AFAICT nothing in Lucene or Solr actually uses this.  If it should be kept, the Scorable's score() method could fetch it at that time (e.g. on-demand).

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 40m
                  40m