public class FiltersParser extends Object implements Aggregator.Parser
Modifier and Type | Field and Description |
---|---|
static ParseField |
FILTERS_FIELD |
static ParseField |
OTHER_BUCKET_FIELD |
static ParseField |
OTHER_BUCKET_KEY_FIELD |
Constructor and Description |
---|
FiltersParser() |
Modifier and Type | Method and Description |
---|---|
AggregatorFactory |
parse(String aggregationName,
XContentParser parser,
SearchContext context)
Returns the aggregator factory with which this parser is associated, may return
null indicating the
aggregation should be skipped (e.g. |
String |
type() |
public static final ParseField FILTERS_FIELD
public static final ParseField OTHER_BUCKET_FIELD
public static final ParseField OTHER_BUCKET_KEY_FIELD
public String type()
type
in interface Aggregator.Parser
public AggregatorFactory parse(String aggregationName, XContentParser parser, SearchContext context) throws IOException
Aggregator.Parser
null
indicating the
aggregation should be skipped (e.g. when trying to aggregate on unmapped fields).parse
in interface Aggregator.Parser
aggregationName
- The name of the aggregationparser
- The xcontent parsercontext
- The search contextnull
in case the aggregation should be skippedIOException
- When parsing failsCopyright © 2009–2017. All rights reserved.