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/07/29 08:28:00 UTC

[jira] [Resolved] (LUCENE-8935) BooleanQuery with no scoring clauses cannot skip documents when running TOP_SCORES mode

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

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

> BooleanQuery with no scoring clauses cannot skip documents when running TOP_SCORES mode
> ---------------------------------------------------------------------------------------
>
>                 Key: LUCENE-8935
>                 URL: https://issues.apache.org/jira/browse/LUCENE-8935
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Jim Ferenczi
>            Priority: Minor
>             Fix For: master (9.0), 8.3
>
>         Attachments: LUCENE-8935.patch
>
>
> Today a boolean query that is composed of filtering clauses only (more than one) cannot skip documents when the search is executed with the TOP_SCORES mode. However since all documents have a score of 0 it should be possible to early terminate the query as soon as we collected enough top hits. Wrapping the resulting boolean scorer in a constant score scorer should allow early termination in this case and would speed up the retrieval of top hits case considerably if the total hit count is not requested.



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org