You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "hackerwin7 (Jira)" <ji...@apache.org> on 2020/10/26 10:18:00 UTC

[jira] [Updated] (LUCENE-9584) PointInSetQuery dose not terminate early if result iterator have no docs

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

hackerwin7 updated LUCENE-9584:
-------------------------------
    Attachment: LUCENE-7.7.0-PointInSetQuery_terminate_early.patch
        Status: Open  (was: Open)

> PointInSetQuery dose not terminate early if result iterator have no docs
> ------------------------------------------------------------------------
>
>                 Key: LUCENE-9584
>                 URL: https://issues.apache.org/jira/browse/LUCENE-9584
>             Project: Lucene - Core
>          Issue Type: Improvement
>          Components: core/search
>    Affects Versions: 8.6.3, 7.7.3
>            Reporter: hackerwin7
>            Priority: Major
>              Labels: performance
>         Attachments: LUCENE-7.7.0-PointInSetQuery_terminate_early.patch
>
>
> Today, in a point in set query after BKD intersect we get a DocIdSetBuilder result, if result's iterator have no docs, then the PointInSetQuery still create ConstantScoreScorer with an empty DocIdSetIterator. 
> In a Boolean Query, such as query = subQuery1 AND subQuery2 AND subQuery3 .... subQueryN
> if subQuery1 is a PointInSetQuery and get a empty result iterator, and subsequent subQuery2 ~ subQueryN would still evaluate to call build scorer, this is an unnecessary cost for this query.
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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