Doing a long overdue upgrade from ES 2.X to ES 6.1.1. I have changed the parent/child mapping to be the join type so it is valid for 6.X. However we need to use a children aggregation.
The docs say it is available: https://www.elastic.co/guide/en/elasticsearch/client/java-api/current/_bucket_aggregations.html#java-aggs-bucket-children
However if you look at the java docs it is not available: https://artifacts.elastic.co/javadoc/org/elasticsearch/elasticsearch/6.1.1/org/elasticsearch/search/aggregations/AggregationBuilders.html
What is the correct way to build a children aggregation for Elasticsearch 6.X since the java API is not available? Is the only way to create and send a request not using the java transport client?