Class SearchContextAggregations

  • public class SearchContextAggregations
    extends java.lang.Object
    The aggregation context that is part of the search context.
    • Method Detail

      • aggregators

        public void aggregators​(Aggregator[] aggregators)
        Registers all the created aggregators (top level aggregators) for the search execution context.
        aggregators - The top level aggregators of the search execution.
      • multiBucketConsumer

        public java.util.function.IntConsumer multiBucketConsumer()
        Returns a consumer for multi bucket aggregation that checks the total number of buckets created in the response