Agg count with range count

Hello,

My doc look like

    {
          "path": "/foo/bar",
          "userId" : "33",
    }

I would like to have the number of userId who have more than

  1. 100 docs
  2. between 50 and 100 docs
  3. less than 100 docs

I try to use different aggregation but I don't know how to make range aggregation on the count of another aggregation

Thanks for your help,

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.