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