Rest High Level Client compatibility mismatch in documentation

Versions (relevant - OpenSearch/Dashboard/Server OS/Browser):
2.x

Describe the issue:
Hi,
Opensearch documentation mentions below
“We recommend using the OpenSearch client to connect to OpenSearch clusters, but if you must use the Elasticsearch OSS Java high-level REST client, version 7.10.2 of the Elasticsearch OSS client also works with the 1.x versions of OpenSearch.”

But it doesn’t mention about 2.x compatibility.

Ref: Java high-level REST client - OpenSearch Documentation

However in below section, it mentions about 7.13.4 as well.

There is a mismatch/in-consistency in the documentation.

Can we please update the documentation to keep it consistent across.

Thanks

@dev4ai Are you planning to use Elasticsearch OSS Java high-level REST client with OpenSearch cluster?

The below documentation regards the version check done by the listed clients against the OpenSearch cluster. All these tools will report compability error above 7.13.4.
The same regards the Logstash and Beats.

@pablo
So until 7.13.4 it should support both 1.x and 2.x Opensearch right?
The documentation at two places talk differently hence got confused.
Rest High level
Language clients - OpenSearch Documentation

Can we update the document with 1.x as well as 2.x below?
“Elasticsearch OSS Java high-level REST client, version 7.10.2 of the Elasticsearch OSS client also works with the 1.x versions of OpenSearch.”

The best option is to migrate to opensearch high level REST client, ref: Java high-level REST client - OpenSearch Documentation
Its pretty seemless, keep a note of below point:
Afterward, change all references of org.elasticsearch to org.opensearch , and you’re ready to start submitting requests to your OpenSearch cluster.