Skip to content

Commit 6c3c839

Browse files
committed
Upgrade to Elasticsearch Client 8.9.0
Closes gh-36886
1 parent 2c3049f commit 6c3c839

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/elasticsearch/ElasticsearchClientConfigurations.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
import co.elastic.clients.json.jackson.JacksonJsonpMapper;
2323
import co.elastic.clients.json.jsonb.JsonbJsonpMapper;
2424
import co.elastic.clients.transport.ElasticsearchTransport;
25-
import co.elastic.clients.transport.TransportOptions;
25+
import co.elastic.clients.transport.rest_client.RestClientOptions;
2626
import co.elastic.clients.transport.rest_client.RestClientTransport;
2727
import com.fasterxml.jackson.databind.ObjectMapper;
2828
import jakarta.json.bind.Jsonb;
@@ -90,8 +90,8 @@ static class ElasticsearchTransportConfiguration {
9090

9191
@Bean
9292
RestClientTransport restClientTransport(RestClient restClient, JsonpMapper jsonMapper,
93-
ObjectProvider<TransportOptions> transportOptions) {
94-
return new RestClientTransport(restClient, jsonMapper, transportOptions.getIfAvailable());
93+
ObjectProvider<RestClientOptions> restClientOptions) {
94+
return new RestClientTransport(restClient, jsonMapper, restClientOptions.getIfAvailable());
9595
}
9696

9797
}

spring-boot-project/spring-boot-dependencies/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ bom {
262262
]
263263
}
264264
}
265-
library("Elasticsearch Client", "8.8.2") {
265+
library("Elasticsearch Client", "8.9.0") {
266266
group("org.elasticsearch.client") {
267267
modules = [
268268
"elasticsearch-rest-client" {

spring-boot-project/spring-boot-docs/src/docs/asciidoc/data/nosql.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ If you have `co.elastic.clients:elasticsearch-java` on the classpath, Spring Boo
330330

331331
The `ElasticsearchClient` uses a transport that depends upon the previously described `RestClient`.
332332
Therefore, the properties described previously can be used to configure the `ElasticsearchClient`.
333-
Furthermore, you can define a `TransportOptions` bean to take further control of the behavior of the transport.
333+
Furthermore, you can define a `RestClientOptions` bean to take further control of the behavior of the transport.
334334

335335

336336

@@ -341,7 +341,7 @@ If you have Spring Data Elasticsearch and Reactor on the classpath, Spring Boot
341341

342342
The `ReactiveElasticsearchclient` uses a transport that depends upon the previously described `RestClient`.
343343
Therefore, the properties described previously can be used to configure the `ReactiveElasticsearchClient`.
344-
Furthermore, you can define a `TransportOptions` bean to take further control of the behavior of the transport.
344+
Furthermore, you can define a `RestClientOptions` bean to take further control of the behavior of the transport.
345345

346346

347347

0 commit comments

Comments
 (0)