Commit 374926fb authored by nivetha's avatar nivetha
Browse files

Merge branch 'master' of https://git.idc.tarento.com/smf/smf-form

Showing with 1 addition and 4 deletions
+1 -4
...@@ -85,11 +85,8 @@ public class ElasticSearchRepository { ...@@ -85,11 +85,8 @@ public class ElasticSearchRepository {
return httpClientBuilder.setDefaultCredentialsProvider(credentialsProvider); return httpClientBuilder.setDefaultCredentialsProvider(credentialsProvider);
} }
}; };
// return new RestHighLevelClient(
// RestClient.builder(new HttpHost(appConfig.getElasticHost(), appConfig.getElasticPort())));
return new RestHighLevelClient( return new RestHighLevelClient(
RestClient.builder(new HttpHost(appConfig.getElasticHost(),appConfig.getElasticPort(), "https")) RestClient.builder(new HttpHost(appConfig.getElasticHost(), appConfig.getElasticPort())));
.setHttpClientConfigCallback(httpClientConfigCallback));
} }
private RestHighLevelClient connectToElasticSearch2() { private RestHighLevelClient connectToElasticSearch2() {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment