Commit e74e53fd authored by Stephane Nicoll's avatar Stephane Nicoll

Clarify how to take full control of ElasticSearch's rest client

Closes gh-23074
parent b80314b4
...@@ -4554,9 +4554,9 @@ You can further tune how `RestClient` is configured, as shown in the following e ...@@ -4554,9 +4554,9 @@ You can further tune how `RestClient` is configured, as shown in the following e
---- ----
You can also register an arbitrary number of beans that implement `RestClientBuilderCustomizer` for more advanced customizations. You can also register an arbitrary number of beans that implement `RestClientBuilderCustomizer` for more advanced customizations.
To take full control over the registration, define a `RestClient` bean. To take full control over the registration, define a `RestClientBuilder` bean.
If you have the `org.elasticsearch.client:elasticsearch-rest-high-level-client` dependency on the classpath, Spring Boot will auto-configure a `RestHighLevelClient`, which wraps any existing `RestClient` bean, reusing its HTTP configuration. If you have the `org.elasticsearch.client:elasticsearch-rest-high-level-client` dependency on the classpath, Spring Boot will auto-configure a `RestHighLevelClient`, which leverages any existing `RestClientBuilder` bean, reusing its HTTP configuration.
[[boot-features-connecting-to-elasticsearch-reactive-rest]] [[boot-features-connecting-to-elasticsearch-reactive-rest]]
......
Markdown is supported
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