Hi, We were using elasticsearch 2.1.0 till now and the following construct was supported
As per the new elasticsearch 5.0.0 documentation, this is removed in favour of #setQuery(). This is not working for most of the queries involving 'aggregations'.
The wrapper query just seem to wrap the entire json inside a 'query' field. But potentially 'jsonQuery' can have aggregations etc.
Is there any other ways with which this is possible?