Details
-
Improvement
-
Status: Open
-
Major
-
Resolution: Unresolved
-
7.7.3, 8.6.3
-
None
-
New
Description
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 an empty result iterator, and subsequent subQuery2 ~ subQueryN would still evaluate to call build scorer, this is an unnecessary cost for this query if subQuery1 have already got an empty result iterator .