-
Notifications
You must be signed in to change notification settings - Fork 25k
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
Improve handling of nested fields in index reader wrappers #118757
Conversation
This update enhances the handling of parent filters to ensure proper exclusion of child documents.
Pinging @elastic/es-security (Team:Security) |
Hi @jimczi, I've created a changelog YAML for you. |
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
if (NestedHelper.mightMatchNestedDocs(roleQuery, context)) { | ||
roleQuery = new BooleanQuery.Builder().add(roleQuery, FILTER) | ||
.add(Queries.newNonNestedFilter(context.indexVersionCreated()), FILTER) | ||
.build(); | ||
} | ||
filter.add(roleQuery, SHOULD); |
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 see, the fix here is that roleQuery was updated, but not in the filter
bool query. This ensures that roleQuery is added when we determined nested docs can match.
💔 Backport failed
You can use sqren/backport to manually backport by running |
…18757) This update enhances the handling of parent filters to ensure proper exclusion of child documents.
…18757) This update enhances the handling of parent filters to ensure proper exclusion of child documents.
…18757) This update enhances the handling of parent filters to ensure proper exclusion of child documents.
…18757) This update enhances the handling of parent filters to ensure proper exclusion of child documents.
…18757) This update enhances the handling of parent filters to ensure proper exclusion of child documents.
…18757) (elastic#118977) This update enhances the handling of parent filters to ensure proper exclusion of child documents.
This update enhances the handling of parent filters to ensure proper exclusion of child documents.