class ElasticSearchClient {

    protected RestHighLevelClient restClientBuilder(Config elasticSearchConfig) {
        RestHighLevelClient client = null;
        try {
            client = new RestHighLevelClient(
                    RestClient.builder(new HttpHost(elasticSearchConfig.getString(HOST),
                                    elasticSearchConfig.getInt(PORT1), elasticSearchConfig.getString(SCHEME)),
                            new HttpHost(elasticSearchConfig.getString(HOST), elasticSearchConfig.getInt(PORT2),
                                    elasticSearchConfig.getString(SCHEME))));
        } catch (Exception e) {
            log.error(e.getMessage(),e);
        }
        return client;
    }

    public  ElasticSearchClient();

}