Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Elasticsearch RestClientBuilder auto-configuration without RestHighLevelClient #28496

Closed

Commits on Jan 10, 2022

  1. Bring back Elasticsearch RestClient auto-configuration

    Prior to this commit, Spring Boot would only auto-configure
    the `RestHighLevelClient` and `RestClientBuilder` if the `RestHighLevelClient`
    was present. This was done in 1d73d4e.
    
    This commit brings back the exposing of the `RestClient` bean in
    Spring Boot when exposing the `RestHighLevelClient` or
    when the `RestHighLevelClient` is not present.
    It allows for using the Spring Boot auto configuration and its customizers
    of the `RestClientBuilder` in a similar way as it is done for the `RestTeamplateBuilder`
    and the `WebClient.Builder`.
    Now the presence of the `org.elasticsearch.client:elasticsearch-rest-high-level-client` is optional.
    This opens the door for potentially adding support to the new
    [Elasticsearch Java Client](https://github.com/elastic/elasticsearch-java) that is based on the same `RestClient`
    
    It also adapts the health contributor to only depend on the low level RestClient.
    filiphr committed Jan 10, 2022
    Configuration menu
    Copy the full SHA
    582e2d1 View commit details
    Browse the repository at this point in the history