How can I aggregation by _count

I have some data like these:
UID ---------------------- other terms i don not care
1001---------------------- ...
1001---------------------- ...
1001---------------------- ...
1002---------------------- ...
1002---------------------- ...
1003 ---------------------- ...

then I aggregation by UID,so i get this:
uid ------------------------------------------Count
1001--------------------------------------------3
1002--------------------------------------------2
1003--------------------------------------------1

How can i get this:
count range----------------------uid count
0<count<=2----------------------2
3<count<5 ----------------------1

Elastic don not surpport this ?

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