Skip to content

Conversation

romseygeek
Copy link
Contributor

Backports the following commits to 8.4:

If a match interval query ends up with no tokens after analysis, we
return an IntervalsSource that produces an empty interval iterator. This
empty iterator previously always reported its current doc id as
NO_MORE_DOCS. However, unpositioned DocIdSetIterators should
report their doc id as -1, so this broke the API contract, which could lead
to exceptions when an empty interval query was combined in a conjunction.
This commit fixes the empty interval implementation so that it returns -1
when unpositioned.

Fixes elastic#89789
@romseygeek romseygeek added :Search/Search Search-related issues that do not fall into other categories >bug auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport Team:Search Meta label for search team labels Sep 9, 2022
@elasticsearchmachine elasticsearchmachine merged commit 5fb9f1c into elastic:8.4 Sep 9, 2022
@romseygeek romseygeek deleted the backport/8.4/pr-89962 branch September 9, 2022 17:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport >bug :Search/Search Search-related issues that do not fall into other categories Team:Search Meta label for search team v8.4.2

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants