Hi,
I am trying to rewrite our code for building multiple aggregations to using the new java API client 7.16.3.
I can't find an example for sub aggregations
TermsAggregationBuilder aggregationBuilder AggregationBuilders.terms(aggregateBy.getAttributeName());
aggregationBuilder.subAggregation(...
How to construct this with a new client?
TermsAggregation.Builder termsBuilder = AggregationBuilders.terms();
termsBuilder.field(aggregateBy.getAttributeName());
termsBuilder.name(aggregateBy.getAttributeName());
termsBuilder.build()._toAggregation().aggregations( ???
Thanks