Filtering avec cardinality

(Chris) #1

I am using ES 1.1.0 and i don't know how to filter result after the
cardinality aggregration.

is there a way to use something like 'min_value' to filter cardinality
aggregation ?

Here is an example

"aggs": {
"agg_login": {
"terms": {
"field": "login",
"size": 1000,
"min_doc_count": 5

        "aggregations": {
                "cardinality": {
                    "field" : "ip_client",
                    "min_value": 5 

Note: the "min_value" function does not work, but that's what i need :slight_smile:

and i would like the result to be : login with count distint ip address
greater than 10



You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To view this discussion on the web visit
For more options, visit

(elias) #2

i'm searching for quite the same usecase for a solution to return only buckets with a minimum value count, but didn't found any solution. Did you figure out a way to solve the problem?

(system) #3