Skip to content

Allow nested aggregation to accept an Aggregation instance.#1251

Closed
ajjahn wants to merge 1 commit into
elastic:mainfrom
ajjahn:master
Closed

Allow nested aggregation to accept an Aggregation instance.#1251
ajjahn wants to merge 1 commit into
elastic:mainfrom
ajjahn:master

Conversation

@ajjahn

@ajjahn ajjahn commented Mar 17, 2021

Copy link
Copy Markdown

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
Copy Markdown
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

cla-checker-service Bot commented Mar 17, 2021

Copy link
Copy Markdown

💚 CLA has been signed

@ajjahn

ajjahn commented Apr 9, 2021

Copy link
Copy Markdown
Author

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

@picandocodigo

Copy link
Copy Markdown
Member

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

@picandocodigo

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