Skip to content

Java-client docs use deprecated RestClient #12993

Description

@jvwilge

The Java client documentation shows RestClient as the transport for OpenSearchClient.

In opensearch-rest-client:3.8.0, org.opensearch.client.RestClient is deprecated. Its deprecation message says: “please consider using official OpenSearch Java Client or RestHighLevelClient”.

In #5424 and #6420, it is proposed to also deprecate RestHighLevelClient
On https://docs.opensearch.org/latest/clients/ it says:

The OpenSearch Java high-level REST client will be deprecated starting with OpenSearch 3.0.0 and will be removed in a future release. Switching to the Java client is recommended.

Is it possible to update the Java client docs and the deprecation message of org.opensearch.client.RestClient in order to make sure people don't accidentally 'upgrade' to RestHighLevelClient?

Edit:
Accidentally put this in the security repo, should've been OpenSearch 🙈

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions