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