public class AggregationParseElement extends 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) |
Modifier and Type | Method and Description |
---|---|
void |
parse(XContentParser parser,
SearchContext context) |
@Inject public AggregationParseElement(AggregatorParsers aggregatorParsers)
public void parse(XContentParser parser, SearchContext context) throws Exception
parse
in interface SearchParseElement
Exception
Copyright © 2009–2016. All rights reserved.