Parsing ElasticSearch response using Java API

I am working on a project where I need to parse response from ElasticSearch into a table structure with rows and columns using their Java API. I found that parsing hits is easier and has examples, but can't find much help with parsing aggregations. There are too many types of aggregations like Terms/Histogram etc. So can someone please give some pointers on how to move ahead with parsing aggregation response.

Also want to add that, the expected response is not known to me, users would be having their own index/queries, so I need to take a care of virtually all response types. I am using their Java API 5.2

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