Class SearchContextAggregations

java.lang.Object
org.elasticsearch.search.aggregations.SearchContextAggregations

public class SearchContextAggregations extends Object
The aggregation context that is part of the search context.
  • Constructor Details

    • SearchContextAggregations

      public SearchContextAggregations(AggregatorFactories factories)
      Creates a new aggregation context with the parsed aggregator factories
  • Method Details

    • factories

      public AggregatorFactories factories()
    • aggregators

      public Aggregator[] aggregators()
    • aggregators

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