Elasticsearch: Are RestClient and RestHighLevelClient deprecated in v7.10

Viewed 6115

I am using Elasticsearch v7.10, and in the javadoc, is the following interface

  • org.elasticsearch.client.Client

but not the following two classes:

  • org.elasticsearch.client.RestClient
  • org.elasticsearch.client.RestHighLevelClient

I am not looking for descriptions of what these classes do, but only want to know whether or not RestClient and RestHighLevelClient have been deprecated in v7.10 (current version)?

Thanks

2 Answers

For people also searching for this, please be aware that at the time of writing the RestHighLevelClient seems to be deprecated. From the documentation this class became deprecated in favor of the Elasticsearch Java API Client

No its not, infact you can see the RestHighLevelClient class in Elasticsearch source code and it contains the RestClient.

Related