Methods
# (static) cardinalityAggregation(params) → {Object}
Assemble a cardinalityAggregation fragment. That is - count the uniq occurences in a field.
Parameters:
Name | Type | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
params |
Object |
Properties
|
Returns:
a query fragment
- Type
- Object
Example
cardinalityAggregation({ name: '@type', field: '@type.keyword' })