Skip to content

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

Merged
nik9000 merged 3 commits intoelastic:7.11from
nik9000:pick_up_real_query_7_11
Jan 7, 2021
Merged

Fix bug with nested and filters agg (backport of #67043)#67171
nik9000 merged 3 commits intoelastic:7.11from
nik9000:pick_up_real_query_7_11

Conversation

@nik9000
Copy link
Copy Markdown
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