Class StringTermsAggregatorFromFilters

All Implemented Interfaces:
Closeable, AutoCloseable, org.apache.lucene.search.Collector, Releasable

public class StringTermsAggregatorFromFilters extends AdaptingAggregator
Adapts a terms aggregation into a filters aggregation. Its possible that we could lovingly hand craft an Aggregator that uses similar tricks that'd have lower memory overhead but generally we reach for this when we know that there aren't many distinct values so it doesn't have particularly high memory cost anyway. And we expect to be able to further optimize the filters aggregation in more cases than a special purpose terms aggregator.