How to implement query termsAgregation to get the documents for each of the buckets that the query generates. I am using java spring boot

Hi, I am trying to get each of the elements that the elasticsearch group by generates. What I get now is the key and the amount of elements for each of the buckets, my interest is to get each of those elements that contain the buckets.

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