Class RestClients

java.lang.Object
org.springframework.data.elasticsearch.client.elc.rest_client.RestClients

@Deprecated(since="6.0", forRemoval=true) public final class RestClients extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
since 6.0, use the new Rest5Client the code for that is in the package ../rest_client.
Utility class containing the functions to create the Elasticsearch RestClient used up to Elasticsearch 9.
Since:
6.0
  • Constructor Details

    • RestClients

      public RestClients()
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • getRestClient

      public static org.elasticsearch.client.RestClient getRestClient(ClientConfiguration clientConfiguration)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Creates a low level RestClient for the given configuration.
      Parameters:
      clientConfiguration - must not be null
      Returns:
      the RestClient
    • getRestClientOptionsBuilder

      public static co.elastic.clients.transport.rest_client.RestClientOptions.Builder getRestClientOptionsBuilder(@Nullable co.elastic.clients.transport.TransportOptions transportOptions)
      Deprecated, for removal: This API element is subject to removal in a future version.