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 }}
}
}
}
}'
| コンストラクタと説明 |
|---|
AggregationParseElement(AggregatorParsers aggregatorParsers) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
void |
parse(XContentParser parser,
SearchContext context) |
@Inject public AggregationParseElement(AggregatorParsers aggregatorParsers)
public void parse(XContentParser parser, SearchContext context) throws Exception
parse インタフェース内 SearchParseElementExceptionCopyright © 2009–2016. All rights reserved.