public class FilterAggregationBuilder extends AggregationBuilder<FilterAggregationBuilder>
Filter aggregation.ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamstypeEMPTY_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, toXContentgetNamepublic 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>IOExceptionCopyright © 2009–2017. All rights reserved.