opensearch-java icon indicating copy to clipboard operation
opensearch-java copied to clipboard

Opensearch Version Compatibility

Open channel-dante opened this issue 2 years ago • 1 comments

What do I want to know?

  1. I am using version 1.3.2 of opensearch through AWS. Can I use the 2.x version of opensearch-java? Below is the opensearch information via endpoint.
  2. the latest version of opensearch-java 2.x has all the APIs for the latest versions of OpenSearch 1.x and 2.x ?
  3. If there are no problems with breaking changes (1.3 -> 2.0.0, link) , is it okay to use 2.x?

Since version 1.x is no longer being upgraded from 1.0.0, I would like to use version 2.x if possible.

channel-dante avatar Nov 08 '23 05:11 channel-dante

I think https://github.com/opensearch-project/opensearch-java/blob/main/COMPATIBILITY.md covers 1. It says that you can use a 2.x client with 1.3.13+, so yes.

We should clarify (2). Likely the answer is no, although an effort is continuing on client generation that should cover a lot.

For (3) there's a section in https://github.com/opensearch-project/opensearch-java/blob/main/COMPATIBILITY.md#upgrading that says "yes, if you're careful" as deprecated features were removed.

It would be helpful to get clear answers to these with examples and add things to the .md file, care to contribute?

dblock avatar Nov 08 '23 15:11 dblock