This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new e458fda54f2 📝 Add SB Autoconfiguration paragraph (#8779)
e458fda54f2 is described below
commit e458fda54f28cf35fcda9387850228f3f4268f3e
Author: Federico Mariani <[email protected]>
AuthorDate: Sat Nov 26 08:26:35 2022 +0100
📝 Add SB Autoconfiguration paragraph (#8779)
---
.../src/main/docs/elasticsearch-component.adoc | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git
a/components/camel-elasticsearch/src/main/docs/elasticsearch-component.adoc
b/components/camel-elasticsearch/src/main/docs/elasticsearch-component.adoc
index 990cc1743f9..9d1b0cd25e6 100644
--- a/components/camel-elasticsearch/src/main/docs/elasticsearch-component.adoc
+++ b/components/camel-elasticsearch/src/main/docs/elasticsearch-component.adoc
@@ -294,6 +294,19 @@ dependency in your own `pom.xml`.
This is needed because Spring Boot v2 provides jakarta.json-api:1.1.6, and
Elasticsearch requires to use json-api v2.
+=== Use RestClient provided by Spring Boot
+
+By default Spring Boot will auto configure an Elasticsearch RestClient that
will be used by camel, it is possible to customize the client with the
following basic properties:
+
+[source,properties]
+----
+spring.elasticsearch.uris=myelkhost:9200
+spring.elasticsearch.username=elkuser
+spring.elasticsearch.password=secure!!
+----
+
+More information can be found in
https://docs.spring.io/spring-boot/docs/current/reference/html/application-properties.html#application-properties.data.spring.elasticsearch.connection-timeout
+
=== Disable Sniffer when using Spring Boot
When Spring Boot is on the classpath the Sniffer client for Elasticsearch is
enabled by default. This option can be disabled in the Spring Boot
Configuration: