Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Won't Fix
-
None
-
None
-
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.