[ 
https://issues.apache.org/jira/browse/LUCENE-10258?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17448696#comment-17448696
 ] 

Greg Miller commented on LUCENE-10258:
--------------------------------------

Hmm, after writing some test cases (and getting more coffee), I'm not sure what 
I had in mind is possible. For this to work, the Scorable provided to 
DoubleValuesSource#fromScorer() would need to already be wrapped with the 
caching scorer. I'll leave this open for a little bit in case someone else sees 
a way to do this that I'm not seeing, but I suspect I'll end up closing this 
since I don't really see a path forward.

> DoubleValuesSource#fromScorer() should leverage ScoreCachingWrappingScorer
> --------------------------------------------------------------------------
>
>                 Key: LUCENE-10258
>                 URL: https://issues.apache.org/jira/browse/LUCENE-10258
>             Project: Lucene - Core
>          Issue Type: Improvement
>          Components: core/search
>            Reporter: Greg Miller
>            Assignee: Greg Miller
>            Priority: Minor
>
> 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.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to