1. Install IK word segmenter 1. Allocate a pseudo terminal My ElasticSearch is installed using Docker, so first assign a pseudo terminal to the container. Then you can directly operate the contents in Docker just like logging into the server. 2. Install the plugin using elasticsearch-plugin cd plugins Enter the plugins folder and execute the following command. 7.12.0 needs to be changed to your es version number ../bin/elasticsearch-plugin install https://github.com/medcl/elasticsearch-analysis-ik/releases/download/v7.12.0/elasticsearch-analysis-ik-7.12.0.zip 3. Restart the elasticsearch container docker restart container id 4. Frequently Asked Questions (1)java.lang.IllegalStateException When executing elasticsearch-plugin install, Failed installing and java.lang.IllegalStateException appeared I checked and found that there is already a folder named ik in my plugins/ directory. ../bin/elasticsearch-plugin install https://github.com/medcl/elasticsearch-analysis-ik/releases/download/v7.12.0/elasticsearch-analysis-ik-7.12.0.zip Installation Successful 2. ik word segmentation principle (Placeholder, I will add more when I have time to read the source code) 3. ik_smart and ik_max_word GET _analyze?pretty{ "analyzer": "ik_smart", "text": "Unlike me, I only feel sorry for pigeons"} GET _analyze?pretty{ "analyzer": "ik_max_word", "text": "Unlike me, I only feel sorry for pigeons"} in conclusion _analyzer builds the index when the word segmentation, when the index uses max_word |
>>: Using Jenkins to create continuous integration for microservice applications
LOCVPS is a domestic hosting company founded in 2...
[[419120]] Last month, the Ministry of Industry a...
[[351567]] Recently, the two topics of "5G, ...
In the digital age where seamless connectivity an...
With over 1.1 billion users, WeChat is China’s la...
Recently, another foreign giant announced that it...
Today we will talk about the MQTT protocol in det...
Whether it is the implementation of ITIL in the e...
Verizon Business recently launched its first comm...
On June 2, it was reported that the technical sta...
We live in an increasingly digital world where ou...
Frank Scalzo, network director at data center ope...
Some time ago, I shared the information about spi...
LOCVPS (Global Cloud) released a promotional plan...