public class ChildrenParser extends Objectimplements Aggregator .Parser
| Constructor and Description |
|---|
ChildrenParser()
|
| Modifier and Type | Method and Description |
|---|---|
AggregatorFactory |
parse(String
Returns the aggregator factory with which this parser is associated, may return
null indicating the aggregation should be skipped (e.g.
|
String |
type()
|
public Stringtype()
type in interface
Aggregator.Parser
public AggregatorFactoryparse(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 aggregation
parser - The xcontent parser
context - The search context
null in case the aggregation should be skipped
IOException - When parsing fails