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

  • Method Details

    • factories

      public AggregatorFactories factories()
    • registerAggsCollectorManager

      public void registerAggsCollectorManager(org.apache.lucene.search.CollectorManager<AggregatorCollector,Void> aggCollectorManager)
      Registers the collector to be run for the aggregations phase
    • getAggsCollectorManager

      public org.apache.lucene.search.CollectorManager<AggregatorCollector,Void> getAggsCollectorManager()
      Returns the collector to be run for the aggregations phase
    • isInSortOrderExecutionRequired

      public boolean isInSortOrderExecutionRequired()
      Returns if the aggregations needs to execute in sort order.
    • getAggregationReduceContextBuilder

      public AggregationReduceContext.Builder getAggregationReduceContextBuilder()
      Returns a builder for the reduce context.