Merge pull request #48141 from filiphr

* pr/48141:
  Polish "Elasticsearch starter should depend on elasticsearch-java"
  Elasticsearch starter should depend on elasticsearch-java

Closes gh-48141
This commit is contained in:
Stéphane Nicoll
2025-11-15 10:50:59 +01:00
2 changed files with 2 additions and 1 deletions
@@ -361,7 +361,7 @@ To disable auto-configuration of the Sniffer, set configprop:spring.elasticsearc
[[data.nosql.elasticsearch.connecting-using-rest.javaapiclient]]
==== Connecting to Elasticsearch Using ElasticsearchClient
If you have `co.elastic.clients:elasticsearch-java` on the classpath, Spring Boot will auto-configure and register an javadoc:co.elastic.clients.elasticsearch.ElasticsearchClient[] bean.
If you use the `spring-boot-starter-elasticsearch` or have added `co.elastic.clients:elasticsearch-java` to the classpath, Spring Boot will auto-configure and register an javadoc:co.elastic.clients.elasticsearch.ElasticsearchClient[] bean.
The javadoc:co.elastic.clients.elasticsearch.ElasticsearchClient[] uses a transport that depends upon the previously described javadoc:co.elastic.clients.transport.rest5_client.low_level.Rest5Client[].
Therefore, the properties described previously can be used to configure the javadoc:co.elastic.clients.elasticsearch.ElasticsearchClient[].
@@ -24,4 +24,5 @@ dependencies {
api(project(":starter:spring-boot-starter"))
api(project(":module:spring-boot-elasticsearch"))
api("co.elastic.clients:elasticsearch-java")
}