In Elastic search for retrieving data i tried to pass a json query through apache http client
and elastic search rest high level client
, Is there any other flexible way to pass the json query using java API ???Any help will be appreciate Thanks in advance
String query="";
SearchModule searchModule..
XContentParser parser = XContentFactory.xContent(XContentType.JSON).createParser(new NamedXContentRegistry(searchModule
.getNamedXContents()), query)