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


#1

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) ?


#2

Seems like I figured it out.

I could do this by using

QueryBuilders.wrapperQuery(jsonQueryString);

Hopefully this is helpful for others


(system) #3

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