Skip to content

Fix bug with nested and filters agg (backport of #67043) #67171

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

Merged
merged 3 commits into from
Jan 7, 2021

Conversation

nik9000
Copy link
Member

@nik9000 nik9000 commented Jan 7, 2021

Fixes a bug where nested documents that match a filter in the filters
agg will be counted as matching the filter. Usually nested documents
only match if you explicitly ask to match them. Worse, we only mach them
in the "filter by filter" mode that we wrote to speed up date_histogram.
The filters agg is fairly rare, but with #63643 we run
date_histogram and range aggregations using filters.

Fixes a bug where nested documents that match a filter in the `filters`
agg will be counted as matching the filter. Usually nested documents
only match if you explicitly ask to match them. Worse, we only mach them
in the "filter by filter" mode that we wrote to speed up date_histogram.
The `filters` agg is fairly rare, but with elastic#63643 we run
`date_histogram` and `range` aggregations using `filters`.
@nik9000 nik9000 merged commit 45ef685 into elastic:7.11 Jan 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant