Seems like a missing functionality. Only one parameter exists, that is precision_threshold. A very simple aggregation. One of the uses is to approximate number of unique values in a set
GET /index-name/vote/_search
{
"size": 0,
"aggs" : {
"unique_users" : {
"cardinality" : {
"field" : "user_id"
}
}
}
}
Seems like a missing functionality. Only one parameter exists, that is precision_threshold. A very simple aggregation. One of the uses is to approximate number of unique values in a set GET /index-name/vote/_search { "size": 0, "aggs" : { "unique_users" : { "cardinality" : { "field" : "user_id" } } } }