public class TermsAggregation extends AggregationCommand
://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-aggregations-bucket-terms-aggregation
.htmlAggregationCommand.OrderCommand| Modifier and Type | Field and Description |
|---|---|
Object |
exclude
Either a string that will be interpreted as a regular expression matching
terms to exclude or an instance of
#Collection or an array containing field values (of type String, Long or Double)
exactly enumerating the excluded items. |
String |
field
The field from which to retrieve terms to aggregate over.
|
Object |
include
Either a string that will be interpreted as a regular expression matching
terms to include or an instance of
Collection or an array containing field values (of type String, Long or Double)
exactly enumerating the included items. |
List<AggregationCommand.OrderCommand> |
order
Specifies the ordering of the aggregation buckets.
|
Integer |
size
The number of top-terms to be used for aggregation.
|
name, subaggregations| Constructor and Description |
|---|
TermsAggregation() |
| Modifier and Type | Method and Description |
|---|---|
void |
addOrder(AggregationCommand.OrderCommand orderItem) |
addSubaggregation, getSubaggregationpublic String field
public List<AggregationCommand.OrderCommand> order
public Object include
Collection or an array containing field values (of type String, Long or Double)
exactly enumerating the included items.public Object exclude
#Collection or an array containing field values (of type String, Long or Double)
exactly enumerating the excluded items.public Integer size
public void addOrder(AggregationCommand.OrderCommand orderItem)
Copyright © 2017 JULIE Lab, Germany. All rights reserved.