When upgrading from Elasticsearch 8 to 9, do I need to update my application server Java code? I use the ES 8 Java API to talk to an ES 8 (and 9?) server.
Is there any ES Java client version 9, for talking with ES server version 9? With some (breaking?) API changes? Or can I just continue using the ES 8 client, no changes required, except for upgrading to an ES 9 server? (With "client" here being my application server.)
There will be, but it might follow some time after the server release. However ...
... certainly as an interim measure this is what we expect folks to do. Elasticsearch has a REST compatibility mode which keeps the 8.x response format even in 9.x clusters to keep clients working across the upgrade.
AIUI the Java client adds these headers automatically, you don't need to take any action to enable this compatibility mode when working with a v9 cluster.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.