IndexSortSortedNumericDocValuesRangeQuery can fail on sparse values. #61766
Labels
blocker
>bug
:Search/Search
Search-related issues that do not fall into other categories
Team:Search
Meta label for search team
In #56657 we integrated a new Lucene query called
IndexSortSortedNumericDocValuesRangeQuery
that can speed up certain range queries. In the following scenario, this query can fail:bool
query containing thesemust
clauses: a range query on the index sort field, plus another restrictive clause.The root cause is a bug in
IndexSortSortedNumericDocValuesRangeQuery
where we don't always obey theDocIdSetIterator
contract. In particular, even whenadvance
returnsNO_MORE_DOCS
, thedocID()
method could return an old doc ID.Since the bug is a violation of a lower-level Lucene contract, there may be other situations where the query fails other than the one above.
The text was updated successfully, but these errors were encountered: