How to sub aggregate with 1 depth term aggs's doc_count?

hi.

I have no idea it is possible or not that sub aggregate with parent terms
aggregation's doc_count result?

I mean....

there are user visit logs in my index.
and I wanna know how sum of visiting count distributed.

consider this rows.
...................
kim
kim
kim
jane
jane
michael
michael
...................

in this case my expected result is
....................
3:1 <--- 1 user visited 3 times
2:2 <--- 2 user visited 2 times

any advice will appreciate.

thanks in advance :slight_smile:

--
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 elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/a69541c0-5142-48d4-ad3e-fe5eff1058cc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.