-
Notifications
You must be signed in to change notification settings - Fork 24.8k
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
Unified highlighter fails by default in hybrid search with knn #101141
Comments
Pinging @elastic/es-search (Team:Search) |
To get around this bug, the following setting should be applied to the index:
|
That reader is a
Since we compare
|
Should we The main idea is that we don't want to fail due to segment offsets being different between the query rewrite and the query scoring. |
well, unwrapping doesn't help. Still trying to find out why we are using a different reader when highlighting vs. building the query. |
OK, I think the issue is this:
Doing |
FYI, here is a branch with some tests that SHOULD pass, but don't. https://github.com/elastic/elasticsearch/compare/main...benwtrent:elasticsearch:bugfix/issue-101141?expand=1 |
I am gonna open a PR to auto-disable weight_mode highlighting when a knn query is present. I think truly fixing it when kNN is around will take more work |
Elasticsearch Version
8.10+
Installed Plugins
No response
Java Version
bundled
OS Version
any
Problem Description
Unified highlighter fails with new setting
This KnnScoreDocQuery was created by a different reader
is the log line for the failure.Relevant PR for the cause: #96068
Steps to Reproduce
This yaml rest test reproduces the bug.
Logs (if relevant)
The failure stack trace looks as follows:
The text was updated successfully, but these errors were encountered: