-
-
Save henesgokdag/bf8992a7a6c278295feed22a51fd3e9e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Configuration | |
public class ElasticClient extends AbstractElasticsearchConfiguration { | |
@Bean | |
public RestHighLevelClient elasticsearchClient() { | |
final ClientConfiguration clientConfiguration = | |
ClientConfiguration | |
.builder() | |
.connectedTo("localhost:9200") | |
.build(); | |
return RestClients.create(clientConfiguration).rest(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment