-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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
Remove Version.V_6_0_0 constant from PercolatorMatchedSlotSubFetchPhase #41995
Remove Version.V_6_0_0 constant from PercolatorMatchedSlotSubFetchPhase #41995
Conversation
Pinging @elastic/es-search |
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.
I left one question
// for now we just use version 6.0 version to find nested parent | ||
final Version version = Version.V_6_0_0; //context.mapperService().getIndexSettings().getIndexVersionCreated(); | ||
Weight weight = percolatorIndexSearcher.createWeight(percolatorIndexSearcher.rewrite(Queries.newNonNestedFilter(version)), | ||
Query nonNestedQuery = Queries.newNonNestedFilter(indexVersionCreated); |
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.
We can remove the version here too since it only checks if the index was created before 6.1.0. We can do this in a follow up but we probably don't need to add the indexVersionCreated
param here and just use CURRENT until we remove it from newNonNestedFilter
?
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.
👍 That makes sense. I will update this PR.
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'll open a new pr to remove the version in newNonNestedFilter
.
There's already a pr opened to remove all use of v6 constants: |
…se (elastic#41995) and use Version.CURRENT instead of passing down index created version
No description provided.