As an example, this guide will cover installing the analysis-icu and analysis-phonetic plugins.
If your deployment is clustered, log into the OpenSearch node in your cluster:
ssh search
Switch to the root user:
sudo su -l root
Edit /mnt/jrc-confs/opensearch/opensearch.dockerfile and add the following:
# Install the ICU and Phonetic plugins
RUN ./bin/opensearch-plugin install analysis-icu \
&& ./bin/opensearch-plugin install analysis-phonetic
Stop the OpenSearch service:
systemctl stop opensearch
Remove the OpenSearch docker image from the system:
docker images | grep 'opensearch' | grep 'custom' | awk '{print $3}' | xargs docker rmi
Start the OpenSearch service, which will rebuild the docker image with your plugins:
systemctl start opensearch
Verify that the plugins are active:
docker exec --user=root -it opensearch ./bin/opensearch-plugin list
Comments
0 comments
Please sign in to leave a comment.