premise
1. The ik tokenizer is used as a plug-in, and it must be installed in docker mode.
2. Put the compressed package of ik tokenizer 6.5.4 under the specified directory
installation
1. Start es
docker start elasticsearch
2. Copy the local compressed package into the container
docker cp /tmp/elasticsearch-analysis-ik-6.5.4.zip elasticsearch:/usr/share/elasticsearch/plugins/
3. Enter into the es container
docker exec -it elasticsearch /bin/bash
4.cd to the plugins directory
cd plugins
5. Create a new folder
mkdir ik
7. Put the compressed package in ik
mv elasticsearch-analysis-ik-6.5.4.zip ik/
8. cd coming
cd ik
9. Unzip the zip
unzip elasticsearch-analysis-ik-6.5.4.zip
10. Delete the compressed package
(If you do not delete this compressed package, it will be checked by es as a plug-in, resulting in an error)
rm -rf elasticsearch-analysis-ik-6.5.4.zip
11. Exit the docker container
exit
12. Restart es
docker restart elasticsearch
13 View es startup log
docker logs -f elasticsearch
After restarting es, you can see the red box, es loads the ik tokenizer plugin ~