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

Adrien Grand commented on LUCENE-8732:
--------------------------------------

+1 to the approach. Should we keep returning the sub scorer via getChildren()?

> Allow ConstantScoreQuery to skip counting hits
> ----------------------------------------------
>
>                 Key: LUCENE-8732
>                 URL: https://issues.apache.org/jira/browse/LUCENE-8732
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Jim Ferenczi
>            Priority: Minor
>         Attachments: LUCENE-8732.patch
>
>
> We already have a ConstantScoreScorer that knows how to early terminate the 
> collection but the ConstantScoreQuery uses a private scorer that doesn't take 
> advantage of setMinCompetitiveScore. This issue is about reusing the 
> ConstantScoreScorer in the ConstantScoreQuery in order to early terminate 
> queries that don't need to compute the total number of hits.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to