Jonathan Sinovassin-Naïk created UNOMI-901:
----------------------------------------------

             Summary: 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


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)

Reply via email to