Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Client clientInstance = Client.create();
- clientInstance.addFilter(new HTTPBasicAuthFilter("", ""));
- WebResource webResource =
- clientInstance.resource("http://hostname:9200/indexname/_search");
- ClientResponse response=webResource.entity(dsl).accept("application/json").get(ClientResponse.class);
- String result = response.getEntity(String.class);
Add Comment
Please, Sign In to add comment