-
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
Upgrade to lucene 8.1.0-snapshot-e460356abe #40952
Upgrade to lucene 8.1.0-snapshot-e460356abe #40952
Conversation
Pinging @elastic/es-distributed |
A small note for reviewer, I had to revert #33196 because the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM - I have one query, which I guess is to do with changes to the highlighter now using query visitors, but just wanted to double check.
} else if (query instanceof FunctionScoreQuery) { | ||
return Collections.singletonList(((FunctionScoreQuery) query).getSubQuery()); | ||
} else if (query instanceof ESToParentBlockJoinQuery) { | ||
return Collections.singletonList(((ESToParentBlockJoinQuery) query).getChildQuery()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we not need these any more?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The unified highlighter uses a QueryVisitor to extract the terms now so I added a visit
implementation for these queries since this code is only called to extract phrase and span queries:
https://github.com/elastic/elasticsearch/pull/40952/files#diff-4d092acdc70f570b9d18594dcffb95a6R80
https://github.com/elastic/elasticsearch/pull/40952/files#diff-80c91092d36bb5d49bdd3ef462f75e40R201
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
This commit upgrades the master branch to the latest snapshot of lucene 8.1.0.