Hi!
I want to query list of all users who have more than 40 documents each.
I've created aggregation:
"aggs" : {
"user-ids" : {
"terms" : {
"field" : "user-id",
"size": 0
}
}
}
with all my users with response:
{
"key": 683696,
"doc_count": 4086
},
{
"key": 678776,
"doc_count": 3625
},
{
"key": 683191,
"doc_count": 3304
},
{
"key": 684065,
"doc_count": 3287
},
.....
I have to leave only buckets with "doc_count" less than 40. Is it possible?
I've found only "min_doc_count". Where is something like "max_doc_count", I can't find it?