Browse Source

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
pull/48143/head
Stéphane Nicoll 1 month ago
parent
commit
a92cb952ba
  1. 2
      documentation/spring-boot-docs/src/docs/antora/modules/reference/pages/data/nosql.adoc
  2. 1
      starter/spring-boot-starter-elasticsearch/build.gradle

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

@ -361,7 +361,7 @@ To disable auto-configuration of the Sniffer, set configprop:spring.elasticsearc @@ -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[].

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

@ -24,4 +24,5 @@ dependencies { @@ -24,4 +24,5 @@ dependencies {
api(project(":starter:spring-boot-starter"))
api(project(":module:spring-boot-elasticsearch"))
api("co.elastic.clients:elasticsearch-java")
}

Loading…
Cancel
Save