Skip to content

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 changed the title Fix bug with nested and filters agg (#67043) Fix bug with nested and filters agg (backport of #67043) Jan 7, 2021
@nik9000 nik9000 merged commit 3a7d3f1 into elastic:7.x 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