[ https://issues.apache.org/jira/browse/UNOMI-901?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18007862#comment-18007862 ]
Serge Huber edited comment on UNOMI-901 at 7/17/25 3:50 PM: ------------------------------------------------------------ If the JDK 17 requirement is too complex, because it requires a Karaf upgrade, you could also use the last version of the ES 8 client instead : https://www.elastic.co/guide/en/elasticsearch/client/java-api-client/8.18/getting-started-java.html This one requires Java 8 and should be upwards compatible with ES 9. Here is Elastic's response to the question of whether you can use the ES 8 Java client with ES 9 cluster : https://discuss.elastic.co/t/trying-out-es-9-any-java-api-changes/376812 Of course this would be an interim solution, but it might help decouple the need to upgrade to ES and the need to upgrade KAraf, which might be less complicated. was (Author: shuber): If the JDK 17 requirement is too complex, because it requires a Karaf upgrade, you could also use the last version of the ES 8 client instead : https://www.elastic.co/guide/en/elasticsearch/client/java-api-client/8.18/getting-started-java.html This one requires Java 8 and should be upwards compatible with ES 9. > Replace elasticsearch-rest-high-level-client with elasticsearch-java client > --------------------------------------------------------------------------- > > Key: UNOMI-901 > URL: https://issues.apache.org/jira/browse/UNOMI-901 > Project: Apache Unomi > Issue Type: Task > Reporter: Jonathan Sinovassin-Naïk > Priority: Major > > h1. Description: > Currently, the project uses the following dependency for Elasticsearch > operations: > {code:java} > <dependency> > <groupId>org.elasticsearch.client</groupId> > <artifactId>elasticsearch-rest-high-level-client</artifactId> > <version>7.4.2</version> > </dependency> > {code} > We need to replace this dependency with the official Elasticsearch Java > client to ensure compatibility with newer versions and benefit from the > latest features: > {code:java} > <dependency> > <groupId>co.elastic.clients</groupId> > <artifactId>elasticsearch-java</artifactId> > <version>9.0.3</version> > </dependency> > {code} > h1. Acceptance Criteria: > Remove the elasticsearch-rest-high-level-client dependency from the project. > Add and configure the new elasticsearch-java client dependency (version > 9.0.3). > Refactor all code that uses the old client to use the new client API. > Ensure all features and integration tests work correctly with the new client. > Update documentation and code comments as necessary to reflect the new client > usage. > h1. Technical Notes: > Review the migration guide and official documentation for the Elasticsearch > Java client. > Adapt request/response handling, error management, and client configuration > as required by the new API. -- This message was sent by Atlassian Jira (v8.20.10#820010)