Is it possible to execute a query supplied in String using Elasticsearch Client 5.1.2?

Hi,

Is it possible to execute a query supplied in Json String using Elasticsearch Client 5.1.2 ?

All of the examples and documentation mentions SearchBuilder to build the query. However in my case the query is already in JSON String, I just need to execute it (if possible) ?

Seems like I figured it out.

I could do this by using

QueryBuilders.wrapperQuery(jsonQueryString);

Hopefully this is helpful for others

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