[
https://issues.apache.org/jira/browse/UNOMI-901?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18007862#comment-18007862
]
Serge Huber commented on UNOMI-901:
-----------------------------------
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)