Cardinality aggregation query calculates an approximate count of distinct values. How we can calculate the cardinality distribution of documents?
For example suppose we have:
a,a,a,b,b,b,c,c,d,d,e
and distinct count distribution is:
3: 2 # count of distint element that have 3 occurnes (a, b)
2: 2 # c, d
1: 1 # e