Skip to content

Conversation

@nik9000
Copy link
Member

@nik9000 nik9000 commented Jun 8, 2020

When you run a significant_terms aggregation on a field and it is
mapped but there aren't any values for it then the count of the
documents that match the query on that shard still have to be added to
the overall doc count. I broke that in #57361. This fixes that.

Closes #57402

When you run a `significant_terms` aggregation on a field and it *is*
mapped but there aren't any values for it then the count of the
documents that match the query on that shard still have to be added to
the overall doc count. I broke that in elastic#57361. This fixes that.

Closes elastic#57402
@nik9000
Copy link
Member Author

nik9000 commented Jun 8, 2020

This is a forward-port of #57757 which has already been reviewed so I'm going to treat it like a backport. We don't usually do forward-ports but in this case the bug only reproduced in 7.x but the fix belongs everywhere.

@nik9000 nik9000 merged commit 3ea2e64 into elastic:master Jun 8, 2020
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.

MixedClusterClientYamlTestSuiteIT: Multisearch test with typed_keys parameter for sampler and significant terms failure

2 participants