Uploaded image for project: 'Apache Unomi'
  1. Apache Unomi
  2. UNOMI-901

Replace elasticsearch-rest-high-level-client with elasticsearch-java client

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • unomi-3.0.0
    • None
    • None

    Description

      Description:

      Currently, the project uses the following dependency for Elasticsearch operations:

      <dependency>
          <groupId>org.elasticsearch.client</groupId>
          <artifactId>elasticsearch-rest-high-level-client</artifactId>
          <version>7.4.2</version>
      </dependency>
      

      We need to replace this dependency with the official Elasticsearch Java client to ensure compatibility with newer versions and benefit from the latest features:

      <dependency>
          <groupId>co.elastic.clients</groupId>
          <artifactId>elasticsearch-java</artifactId>
          <version>9.0.3</version>
      </dependency>
      

      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.

      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.

      Attachments

        Issue Links

          Activity

            People

              jsinovassinnaik Jonathan Sinovassin-Naïk
              jsinovassinnaik Jonathan Sinovassin-Naïk
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h
                  1h