Reg Aggregations using Java Client

Hi,

Earlier in elasticsearch 2.4 version, we used to fetch aggregation json string from DB (agg string used to get added dynamically) and used to set aggregations using setAggregations(bytes[] string) method in java transport client. But now when we updated to 5.0 we found that setAggregations is no longer supported.

Could anyone please help me how to build aggregation from json String. As those aggregation are to be picked up from DB, it is not possible to manually create one using aggregationbuilder.

Regards,
Vivek

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