Skip to content
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

Add support for getting aggregations on nested aggregation results #212

Merged

Conversation

enrise-mbraam
Copy link
Contributor

The aggregations() method on a Results class fails if the result contains a nested aggregation, in which case there is no key buckets available.
The nested aggregation can be recognized by the presence of the doc_count key, which is absent otherwise.

@Jeroen-G Jeroen-G merged commit 1fdab85 into Jeroen-G:master Sep 15, 2023
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants