# ElasticsearchClient issue: What is the new equivalent of the old AbstractAggregationBuilder's subAggregation method

**URL:** <https://discuss.elastic.co/t/elasticsearchclient-issue-what-is-the-new-equivalent-of-the-old-abstractaggregationbuilders-subaggregation-method/314228>\
**Category:** Elasticsearch\
**Tags:** language-clients\
**Created:** [September 12, 2022, 8:13pm UTC](https://discuss.elastic.co/t/elasticsearchclient-issue-what-is-the-new-equivalent-of-the-old-abstractaggregationbuilders-subaggregation-method/314228 "2022-09-12T20:13:41Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![RabBit\_BR](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rabbit_br/32/82261_2.png) [@RabBit\_BR](https://discuss.elastic.co/u/RabBit_BR)\
**Post date:** [September 12, 2022, 8:51pm UTC](https://discuss.elastic.co/t/elasticsearchclient-issue-what-is-the-new-equivalent-of-the-old-abstractaggregationbuilders-subaggregation-method/314228/2 "2022-09-12T20:51:08Z")

</div>

Hi @Rudy_Bonefas  
Maybe this [post](https://discuss.elastic.co/t/sub-aggregations-in-java-api-client/312072/2) help you.

---

_[View the full topic](https://discuss.elastic.co/t/elasticsearchclient-issue-what-is-the-new-equivalent-of-the-old-abstractaggregationbuilders-subaggregation-method/314228)._
