TermsAggregationBuilder term = AggregationBuilders.terms("agg1").field("test");
term.size(100);
FilterAggregationBuilder filterAgg = new FilterAggregationBuilder("agg2", new MatchAllQueryBuilder()).subAggregation(term);
How can I achieve the same using the new AggregationBuilder for the Java API Client ?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.