Skip to content

Allow nested aggregation to accept an Aggregation instance. #1251

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

Closed
wants to merge 1 commit into from

Conversation

ajjahn
Copy link

@ajjahn ajjahn commented Mar 17, 2021

For example:

nested = Aggregation.new do
  sum field: 'foo'
end

outer = Aggregation.new do
  aggregation(:nested_agg, nested)
end

This matches the behavior of the top level query aggregation method.

For example:
```ruby
nested = Aggregation.new do
  sum field: 'foo'
end

outer = Aggregation.new do
  aggregation(:nested_agg, nested)
end
```

This matches the behavior of the top level query `aggregation` method.
@elasticmachine
Copy link
Collaborator

Since this is a community submitted pull request, a Jenkins build has not been kicked off automatically. Can an Elastic organization member please verify the contents of this patch and then kick off a build manually?

@cla-checker-service
Copy link

cla-checker-service bot commented Mar 17, 2021

💚 CLA has been signed

@ajjahn
Copy link
Author

ajjahn commented Apr 9, 2021

Contributor Agreement has been signed. Any feedback or changes needed to make this mergeable?

@picandocodigo
Copy link
Member

Thanks for this contribution @ajjahn! I'll review it this week!

@picandocodigo
Copy link
Member

Transferred to the new repository.

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.

3 participants