CountAggregation returns the total number of values for a specific field or the total number of rows in a search index. This method can be used in a similar manner as the SQL COUNT function.
Request parameters
message CountAggregation {
optional string field_name = 1;
}
Parameter | Type | Required | Description |
field_name | string | Yes | The field that is used for aggregation. |
Response parameters
message CountAggregationResult {
optional int64 value = 1;
}
Parameter | Type | Required | Description |
value | int64 | Yes | The return value. |