Interface Filters
- All Superinterfaces:
Aggregation,MultiBucketsAggregation,org.elasticsearch.common.xcontent.ToXContent,org.elasticsearch.common.xcontent.ToXContentFragment
- All Known Implementing Classes:
InternalFilters,ParsedFilters
public interface Filters extends MultiBucketsAggregation
A multi bucket aggregation where the buckets are defined by a set of filters (a bucket per filter). Each bucket
will collect all documents matching its filter.
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceFilters.BucketA bucket associated with a specific filter (identified by its key)Nested classes/interfaces inherited from interface org.elasticsearch.search.aggregations.Aggregation
Aggregation.CommonFields -
Field Summary
Fields inherited from interface org.elasticsearch.search.aggregations.Aggregation
TYPED_KEYS_DELIMITER -
Method Summary
Modifier and Type Method Description Filters.BucketgetBucketByKey(java.lang.String key)java.util.List<? extends Filters.Bucket>getBuckets()The buckets created by this aggregation.Methods inherited from interface org.elasticsearch.search.aggregations.Aggregation
getMetadata, getName, getType
-
Method Details
-
getBuckets
java.util.List<? extends Filters.Bucket> getBuckets()The buckets created by this aggregation.- Specified by:
getBucketsin interfaceMultiBucketsAggregation- Returns:
- The buckets of this aggregation.
-
getBucketByKey
-