forked from spring-projects/spring-boot
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove Elasticsearch RestClient auto-configuration
Prior to this commit, Spring Boot would auto-configure both Elasticsearch variants: `RestClient` ("Low Level" client) and `RestHighLevelClient` ("High Level" client). Since one can be derived from the other, this would create complex and unclear situations depending on what developers provided with their configuration. `RestHighLevelClient` is mostly for actual use of the Elasticsearch API, with support for specific methods and (de)serialization. On the other hand, `RestClient` is merely wrapping the Apache HTTP client for load-balancing support and low level HTTP features. This commit completely removes the support for `RestClient` in Spring Boot and now requires the presence of the `org.elasticsearch.client:elasticsearch-rest-high-level-client` dependency for REST client support with Elasticsearch. Closes spring-projectsgh-22358
- Loading branch information
Showing
6 changed files
with
191 additions
and
281 deletions.
There are no files selected for viewing
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
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
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
Oops, something went wrong.