Java api client structuring aggregation

Hi ,
Can anyone please share how to structure subAggregations using java api client . I have a code in java rest high level client using AggregationBuilders and was looking forward to upgrade to java api client .

Code using high level client -

AggregationBuilders.nested("abcd", "products")
.subAggregation(AggregationBuilders.min("lowestSortOrde").field("products.sortOrder"));

Can anyone please help me with how to produce the same aggragtion structure using java api client .

Thanks in Advance

I could also see different functions like Aggregations , putAggregations in new AggregationBuilders . Can someone please help me understand the difference of these methods and If there is any alternative for subAggregations function in the old library ?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.