Skip to content

Conversation

@benwtrent
Copy link
Member

Backports the following commits to 9.2:

* Disable matches mode for all knn queries

matches highlight mode will utilize a MemoryIndex. Newer
knn queries utilize an optimization that makes assumptions about
the IndexSearch and reader utilized. This will end up throwing an
NPE.

While we have fixed this NPE in Apache Lucene, we just should not
utilize weight matches model for knn queries at all. Maybe
this restriction can be addressed later.

closes: elastic#136427

* adding comment

* formatting

* Update docs/changelog/136563.yaml
@benwtrent benwtrent added :Search Relevance/Vectors Vector search >bug auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch labels Oct 15, 2025
@elasticsearchmachine elasticsearchmachine merged commit e612ec9 into elastic:9.2 Oct 15, 2025
34 checks passed
@benwtrent benwtrent deleted the backport/9.2/pr-136563 branch October 15, 2025 12:01
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 Relevance/Vectors Vector search Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch v9.2.1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants