Skip to content

Commit a92cb95

Browse files
committed
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
2 parents 24cdad5 + c6c649f commit a92cb95

File tree

2 files changed

+2
-1
lines changed
  • documentation/spring-boot-docs/src/docs/antora/modules/reference/pages/data
  • starter/spring-boot-starter-elasticsearch

2 files changed

+2
-1
lines changed

documentation/spring-boot-docs/src/docs/antora/modules/reference/pages/data/nosql.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ To disable auto-configuration of the Sniffer, set configprop:spring.elasticsearc
361361
[[data.nosql.elasticsearch.connecting-using-rest.javaapiclient]]
362362
==== Connecting to Elasticsearch Using ElasticsearchClient
363363

364-
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.
364+
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.
365365

366366
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[].
367367
Therefore, the properties described previously can be used to configure the javadoc:co.elastic.clients.elasticsearch.ElasticsearchClient[].

starter/spring-boot-starter-elasticsearch/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,5 @@ dependencies {
2424
api(project(":starter:spring-boot-starter"))
2525

2626
api(project(":module:spring-boot-elasticsearch"))
27+
api("co.elastic.clients:elasticsearch-java")
2728
}

0 commit comments

Comments
 (0)