Class FilterAggregatorFactory

java.lang.Object
org.elasticsearch.search.aggregations.AggregatorFactory
org.elasticsearch.search.aggregations.bucket.filter.FilterAggregatorFactory

public class FilterAggregatorFactory
extends AggregatorFactory
  • Constructor Details

  • Method Details

    • getWeight

      public org.apache.lucene.search.Weight getWeight()
      Returns the Weight for this filter aggregation, creating it if necessary. This is done lazily so that the Weight is only created if the aggregation collects documents reducing the overhead of the aggregation in the case where no documents are collected. Note that as aggregations are initialsed and executed in a serial manner, no concurrency considerations are necessary here.
    • createInternal

      public Aggregator createInternal​(SearchContext searchContext, Aggregator parent, boolean collectsFromSingleBucket, java.util.List<PipelineAggregator> pipelineAggregators, java.util.Map<java.lang.String,​java.lang.Object> metaData) throws java.io.IOException
      Specified by:
      createInternal in class AggregatorFactory
      Throws:
      java.io.IOException