public class AggregationParseElement extends java.lang.Object implements SearchParseElement
curl -XGET 'localhost:9200/_search?search_type=count' -d '{ query: { match_all : {} }, addAggregation : { avg_price: { avg : { field : price } }, categories: { terms : { field : category, size : 12 }, addAggregation: { avg_price : { avg : { field : price }} } } } }'
Constructor and Description |
---|
AggregationParseElement(AggregatorParsers aggregatorParsers,
IndicesQueriesRegistry queriesRegistry) |
Modifier and Type | Method and Description |
---|---|
void |
parse(XContentParser parser,
SearchContext context) |
@Inject public AggregationParseElement(AggregatorParsers aggregatorParsers, IndicesQueriesRegistry queriesRegistry)
public void parse(XContentParser parser, SearchContext context) throws java.lang.Exception
parse
in interface SearchParseElement
java.lang.Exception