You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Jim Ferenczi (JIRA)" <ji...@apache.org> on 2019/03/27 17:12:00 UTC

[jira] [Resolved] (LUCENE-8732) Allow ConstantScoreQuery to skip counting hits

     [ https://issues.apache.org/jira/browse/LUCENE-8732?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jim Ferenczi resolved LUCENE-8732.
----------------------------------
       Resolution: Fixed
    Fix Version/s: master (9.0)
                   8.1

> 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
>             Fix For: 8.1, master (9.0)
>
>         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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org