I have upgraded code from transport client to High Level client.
Java: JDK 8
ES version: 6.5.4
When api response time of transport client is compared to High Level client, there is a difference, especially EXTERNAL-CALL, i.e., org.elasticsearch.client.RestHighLevelClient operation is taking more time.
RestHighLevel client is initialised and used in standard way.
HttpHost httpHosts = // code to get hosts;
RestClientBuilder builder = RestClient.builder(httpHosts);
RestHighLevelClient restHighLevelClient = new RestHighLevelClient(builder.getRestClient());
Please suggest me if there is any way to tune for better response time and performance.