Specifies the aggregation operation of the search index feature that is used to return the number of distinct values of a field. This operation is similar to the COUNT(DISTINCT)
function in SQL.
Request syntax
message DistinctCountAggregation {
optional string field_name = 1;
optional bytes missing = 2;
}
Parameter | Type | Required | Description |
field_name | string | Yes | The name of the field on which you want to perform the aggregation operation. |
missing | bytes | No | The default value of a field if the value of the field is empty in the row. The value of the parameter is encoded in PlainBuffer. For more information, see PlainBuffer.
|
Response syntax
message DistinctCountAggregationResult {
optional int64 value = 1;
}
Parameter | Type | Required | Description |
value | int64 | Yes | The return value. |