I see in the documentation how to count how many times each value of a field appears. But that is not exactly what I need.
My documents have a field myfield, of type keyword.
I need to know how many different values of myfield appear between 1 and 10 times. How many between 11 and 20 times. And so on. I don't care about their values, only their number of occurrences.
It feels to me the solution is some sort of compound aggregation, but not 100% clear how exactly, and I don't know the key words to search it myself. So any hint or direct link to documentation would be helpful.