Java API client 8.x with Elasticsearch 7.x

Hello,

Can the Java API client 8.x be used with Elasticsearch server 7.x?

Welcome to our community! :smiley:

That depends on your specific minor versions. Please see Compatibility | Java REST Client [7.17] | Elastic for more details.

1 Like

Follow up with a similar question.
I'm running 7.15 today (both ES & REST client). Is there a document suggesting how to upgrade to say ES 8.5?
We don't do instance upgrade. We use double write.
We will have both 7.15 & 8.5 clusters running during the transition where the applications will double write to both clusters.
Once the new cluster (8.5) is loaded with enough data, we then switch the reader from old 7.15 to new 8.5 cluster. Then stop the double write from applications and thenshutdown the old 7.15 cluster.
Our applications consist of both java and python.

With such operation, what is the proper way to migrate our code from REST to API?
Any pointers will be highly appreciated.
Thanks.

Please create a new topic, as your question is a lot deeper than just version number compatibility.

Some additional details: if you're in a scenario with mixed 7.x and 8.x Elasticsearch server, using the Java API client 8.x may work with Elasticsearch server 7.x.

However, you will get better compatibility using the Java API client 7.x with Elasticsearch 8.x. The Java API client 7.x will send the necessary headers so that Elasticsearch server 8.x works in 7.x compatible mode.

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.