Methods
# (static) termsAggregation(params) → {Object}
Assemble a termsAggregation fragment.
Parameters:
Name | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
params |
Object |
Properties
|
Returns:
a query fragment
- Type
- Object
Example
termsAggregation({ name: '@type', field: '@type.keyword', size: 12 })