From e74e53fdaf40c4f5c675bf33c28e61540388612a Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Mon, 31 Aug 2020 11:19:36 +0200 Subject: [PATCH] Clarify how to take full control of ElasticSearch's rest client Closes gh-23074 --- .../src/docs/asciidoc/spring-boot-features.adoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-boot-project/spring-boot-docs/src/docs/asciidoc/spring-boot-features.adoc b/spring-boot-project/spring-boot-docs/src/docs/asciidoc/spring-boot-features.adoc index 2405ef3048cb..5958f9ab9c83 100644 --- a/spring-boot-project/spring-boot-docs/src/docs/asciidoc/spring-boot-features.adoc +++ b/spring-boot-project/spring-boot-docs/src/docs/asciidoc/spring-boot-features.adoc @@ -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. -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]]