mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
Upgrade to Elasticsearch Client 8.9.0
Closes gh-36886
This commit is contained in:
parent
2c3049f961
commit
6c3c8398d0
@ -22,7 +22,7 @@ import co.elastic.clients.json.SimpleJsonpMapper;
|
||||
import co.elastic.clients.json.jackson.JacksonJsonpMapper;
|
||||
import co.elastic.clients.json.jsonb.JsonbJsonpMapper;
|
||||
import co.elastic.clients.transport.ElasticsearchTransport;
|
||||
import co.elastic.clients.transport.TransportOptions;
|
||||
import co.elastic.clients.transport.rest_client.RestClientOptions;
|
||||
import co.elastic.clients.transport.rest_client.RestClientTransport;
|
||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
import jakarta.json.bind.Jsonb;
|
||||
@ -90,8 +90,8 @@ class ElasticsearchClientConfigurations {
|
||||
|
||||
@Bean
|
||||
RestClientTransport restClientTransport(RestClient restClient, JsonpMapper jsonMapper,
|
||||
ObjectProvider<TransportOptions> transportOptions) {
|
||||
return new RestClientTransport(restClient, jsonMapper, transportOptions.getIfAvailable());
|
||||
ObjectProvider<RestClientOptions> restClientOptions) {
|
||||
return new RestClientTransport(restClient, jsonMapper, restClientOptions.getIfAvailable());
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -262,7 +262,7 @@ bom {
|
||||
]
|
||||
}
|
||||
}
|
||||
library("Elasticsearch Client", "8.8.2") {
|
||||
library("Elasticsearch Client", "8.9.0") {
|
||||
group("org.elasticsearch.client") {
|
||||
modules = [
|
||||
"elasticsearch-rest-client" {
|
||||
|
@ -330,7 +330,7 @@ If you have `co.elastic.clients:elasticsearch-java` on the classpath, Spring Boo
|
||||
|
||||
The `ElasticsearchClient` uses a transport that depends upon the previously described `RestClient`.
|
||||
Therefore, the properties described previously can be used to configure the `ElasticsearchClient`.
|
||||
Furthermore, you can define a `TransportOptions` bean to take further control of the behavior of the transport.
|
||||
Furthermore, you can define a `RestClientOptions` bean to take further control of the behavior of the transport.
|
||||
|
||||
|
||||
|
||||
@ -341,7 +341,7 @@ If you have Spring Data Elasticsearch and Reactor on the classpath, Spring Boot
|
||||
|
||||
The `ReactiveElasticsearchclient` uses a transport that depends upon the previously described `RestClient`.
|
||||
Therefore, the properties described previously can be used to configure the `ReactiveElasticsearchClient`.
|
||||
Furthermore, you can define a `TransportOptions` bean to take further control of the behavior of the transport.
|
||||
Furthermore, you can define a `RestClientOptions` bean to take further control of the behavior of the transport.
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user