From 889b614a40caa60e66958fc57b85b70307ec0694 Mon Sep 17 00:00:00 2001
From: Darshan Nagesh <darshan.nagesh@tarento.com>
Date: Mon, 4 Apr 2022 17:19:49 +0530
Subject: [PATCH] Changes in the https call

---
 .../formservice/repository/ElasticSearchRepository.java      | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/src/main/java/com/tarento/formservice/repository/ElasticSearchRepository.java b/src/main/java/com/tarento/formservice/repository/ElasticSearchRepository.java
index 29554c9..43cbd79 100644
--- a/src/main/java/com/tarento/formservice/repository/ElasticSearchRepository.java
+++ b/src/main/java/com/tarento/formservice/repository/ElasticSearchRepository.java
@@ -85,11 +85,8 @@ public class ElasticSearchRepository {
 				return httpClientBuilder.setDefaultCredentialsProvider(credentialsProvider);
 			}
 		};
-//		return new RestHighLevelClient(
-//				RestClient.builder(new HttpHost(appConfig.getElasticHost(), appConfig.getElasticPort())));
 		return new RestHighLevelClient(
-				RestClient.builder(new HttpHost(appConfig.getElasticHost(),appConfig.getElasticPort(), "https"))
-				.setHttpClientConfigCallback(httpClientConfigCallback));
+					RestClient.builder(new HttpHost(appConfig.getElasticHost(), appConfig.getElasticPort())));
 	}
 
 	private RestHighLevelClient connectToElasticSearch2() {
-- 
GitLab