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

Michael McCandless commented on LUCENE-10481:
---------------------------------------------

I think the reason why it may sometimes need scores is if you ask it to 
aggregate the relevance for each facet value, using "association facets", and 
then pick top N by descending relevance.  Maybe?

But yeah +1 to the change – we should not ask for scores if we won't use them :)

> FacetsCollector does not need scores when not keeping them
> ----------------------------------------------------------
>
>                 Key: LUCENE-10481
>                 URL: https://issues.apache.org/jira/browse/LUCENE-10481
>             Project: Lucene - Core
>          Issue Type: Improvement
>          Components: modules/facet
>            Reporter: Mike Drob
>            Assignee: Mike Drob
>            Priority: Major
>             Fix For: 8.11.2, 9.2
>
>          Time Spent: 50m
>  Remaining Estimate: 0h
>
> FacetsCollector currently always specifies ScoreMode.COMPLETE, we could get 
> better performance by not requesting scores when we don't need them.



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

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

Reply via email to