Skip to content

Migrate the plugin envelope for Elastic 8 #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

garaud
Copy link

@garaud garaud commented May 20, 2025

Make this plugin compatible with Elastic v8.18.1

Discussions

  • Not sure about the minimal transport version (which is not the same as the Elasticsearch version). For now, I just set TransportVersions.MINIMUM_COMPATIBLE (which is V_7_17_0).

  • Maybe it's worth to remove legacy-geo and replace it by elasticsearch-geo

Summary

  • update the gradle.build

    • update the Elasticsearch version to v8.18.1
    • add the spotless Gradle plugin to format the code. Also added
      two config files to spotless from the Elastic github repo
    • formatterConfig.xml
    • elastic.importerorder
    • fix some missing dependencies such as jts-core and spatial4j
  • update gradlew

  • make the code compatible with the Elastic 8 API

    and carry out some formatting thanks to the spotless Gradle plugin

    • the 'AggregationSpec' constructor is not the same. Get rid of a deprecation warning
    • implement the 'getMinimalSupportedVersion' method
    • remove the 'getRegistryKey' method
    • update the 'getLeafCollector' method
    • replace the 'reduce' method to 'getLeaderReducer'
  • update the Dockerfile

  • add the legacy-geo-8.18.1.jar

    As the legacy-geo is not more distributed with Elastic, we:

    1. compiled this module from the Elastic v8.18.1 source code
      with './gradlew :modules:legacy-geo:assemble'
    2. copy/pasted it into this repo
  • update the README file

garaud added 6 commits May 20, 2025 23:29
* update the Elasticsearch version to v8.18.1
* add the spotless Gradle plugin to format the code. Also added
  two config files to spotless from the Elastic github repo
  * formatterConfig.xml
  * elastic.importerorder
* fix some missing dependencies such as jts-core and spatial4j
and carry out some formatting thanks to the spotless Gradle plugin

* the 'AggregationSpec' constructor is not the same. Get rid of a deprecation warning
* implement the 'getMinimalSupportedVersion' method
* remove the 'getRegistryKey' method
* update the 'getLeafCollector' method
* replace the 'reduce' method to 'getLeaderReducer'
As the legacy-geo is not more distributed with Elastic, we:

1. compiled this module from the Elastic v8.18.1 source code
   with './gradlew :modules:legacy-geo:assemble'
2. copy/pasted it into this repo
@garaud garaud requested a review from 5k4nd May 20, 2025 22:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant