Skip to content

[8.19] Fix NPE in flat_bbq scorer when all vectors are missing (#129548) #129624

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 18, 2025

Conversation

benwtrent
Copy link
Member

Backport

This will backport the following commits from main to 8.19:

Questions ?

Please refer to the Backport tool documentation

It is possible to get all the way down to the knn format reader and
there be no vectors in the index.

This execution path is possible if utilizing nested queries (which
bypasses the higher level checks in
`KnnFloatVectorQuery#approximateSearch`).

bbq_flat should check for the existence of vectors before attempting to
create the scorer.

(cherry picked from commit 80667d0)
@benwtrent benwtrent added auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) :Search Relevance/Vectors Vector search labels Jun 18, 2025
@elasticsearchmachine elasticsearchmachine merged commit fd2bac4 into elastic:8.19 Jun 18, 2025
22 checks passed
@benwtrent benwtrent deleted the backport/8.19/pr-129548 branch June 18, 2025 14:20
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 :Search Relevance/Vectors Vector search v8.19.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants