Hi Lee,
thank you for your answer; however, I don't need simple Terms aggregation - in my fruit example I don't need columns for apple, pear and banana each. Instead, I need a column for fruits with the same count, i.e., I would like to have a count of all docs of the same fruit type as the Term, is that achievable?
Sorry, i am not sure my initial post and the thread title made this clear enough.