Elasticsearch tutorial: ik custom word segmentation

Taking "New Coronary Virus Pneumonia" as an example, I want the word breaker to treat the new crown as a word. Since this word is not entered in the thesaurus of the ik word breaker itself, as we have seen before, the ik word breaker will use the new crown as two words. word to process; then, manually enter this entry here.
Add entry ( elasticsearch-7.6.2\plugins\ik\config): This is directly written in main.dic.

Take a look at the word segmentation effect after adding custom entries:

insert image description here

The new crown was successfully divided into one word, instead of the previous two words, new and crown.

insert image description here

Guess you like

Origin blog.csdn.net/a772304419/article/details/132390974