aparo / opensearch-analysis-ik

The IK Analysis plugin integrates Lucene IK analyzer into OpenSearch, support customized dictionary. Port of https://github.com/medcl/elasticsearch-analysis-ik
Apache License 2.0
39 stars 15 forks source link

wrong default location for configuration files #12

Closed rursprung closed 1 year ago

rursprung commented 2 years ago

with OpenSearch 2.0.0 the default location for the configuration of plugins has changed and is now ..../opensearch/config/[plugin-name] (see also opensearch-project/opensearch-plugins#127). opensearch-plugin install will also accordingly copy the content of the config folder from the plugin ZIP to that location.

however, this plugin here still tries to find the configuration in ..../opensearch/plugins/opensearch-analysis-ik/config. please change accordingly so that it looks for the configuration in the new default location (and, to be backwards compatible, maybe first try to load it from the location you're testing so far and only load it from the default location if the other isn't found; this backwards compatibility can then be removed in the next major release).

existing workaround:

ln -s ..../opensearch/config/opensearch-analysis-ik ..../opensearch/plugins/opensearch-analysis-ik/config