Hello everyone,
We have a large java application which heavily relies on HLRC code. Our current ES version is 8.x
As we know that the HLRC client was deprecated with 7.17.x, it currently works with our version 8.x
my question is will this work with ES version 9.x also we use Java 8 will the new java api client work with my older java version
It is as far as I know not compatible, so I would recommend upgrading to the new Java client. There has been a lot of changes between Elasticsearch 7 and Elasticsearch 9 so I would expect compatibility issues to pop up even if you only use old features.
Hello!
There’s no mechanism in place that prevents using a 7.x client with a 9.x server, but it’s likely that there will be differences in the APIs that will cause some features to be virtually unusable.
The 8.x java client supports up to java 8, while the 9.x java client requires at least java 17. My suggestion would be to migrate from the HLRC to a later version of 8.x java client (like 8.19) following our migration guide, and postpone updating to the 9.x client until the rest of the application can switch to java 17.
Thanks for your detailed inputs so will HLRC 7.17.x work with Elasticsearch 8.19.2 for the meantime
So HLRC won’t work with 9.x server ( Elasticsearch cluster version 9) right?
As I said, they’re not completely incompatible, so running very simple queries might work exactly the same, but try doing anything more complex and the incompatibilities between how HLRC maps the APIs and how the APIs are actually defined in the 9.x server will start showing through errors, missing fields, renamed fields, etc.