Hello. I have several fields, and I want to put each one as a sub agg of another one.
Say A->subAgg(B)->subAgg(C)->subAgg(D)
But I want them to be put depending on their number of results. If for example D has the most results as an aggregation I want it to be put at first, and the next one is the one containing the second most results, say A... etc like so D->subAgg(A)->subAgg(B)->subAgg(C)
How can I do that?