public class FilterAggregationBuilder extends AggregationBuilder<FilterAggregationBuilder>
Filter
aggregation.ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
type
EMPTY_PARAMS
Constructor and Description |
---|
FilterAggregationBuilder(String name)
Sole constructor.
|
Modifier and Type | Method and Description |
---|---|
FilterAggregationBuilder |
filter(QueryBuilder filter)
Set the filter to use, only documents that match this filter will fall
into the bucket defined by this
Filter aggregation. |
protected XContentBuilder |
internalXContent(XContentBuilder builder,
ToXContent.Params params) |
setMetaData, subAggregation, subAggregation, subAggregation, subAggregation, subAggregation, subAggregation, toXContent
getName
public FilterAggregationBuilder(String name)
public FilterAggregationBuilder filter(QueryBuilder filter)
Filter
aggregation.protected XContentBuilder internalXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
internalXContent
in class AggregationBuilder<FilterAggregationBuilder>
IOException
Copyright © 2009–2016. All rights reserved.