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

DoubleValuesSource#fromScorer() should leverage ScoreCachingWrappingScorer

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Won't Fix
    • None
    • None
    • core/search
    • None
    • New

    Description

      DoubleValuesSource#fromScorer() is a helper method for wrapping a Scorable in a DoubleValues instance (providing the value of Scorable#score() as its value). It would be nice to leverage ScoreCachingWrappingScorer for this use-case to avoid unnecessarily recomputing the score if the Scorable is being used elsewhere.

      Attachments

        Activity

          People

            gsmiller Greg Miller
            gsmiller Greg Miller
            Votes:
            0 Vote for this issue
            Watchers:
            3 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 - 20m
                20m