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.”
@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.
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.