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
According to statistics from China News Service, ...
404 Not Found When surfing the Internet, whether ...
In the field of quantum computers, my country'...
Choosing the most appropriate network layout is c...
However, you may have discovered a problem. The u...
OneTechCloud (Yike Cloud) has started its July pr...
[[390044]] This article is reprinted from the WeC...
ZJI has launched a new machine again, this time i...
spinservers launched two special-priced dedicated...
We have previously discussed the importance of AP...
As 5G is being promoted and deployed around the w...
On April 28, Wu Hequan, an academician of the Chi...
OneTechCloud (Yikeyun) offers a 20% discount code...
DesiVPS, an Indian hosting company, is headquarte...
EtherNetservers is a foreign VPS hosting company ...