Recent papers ElasticSearch series :

1、 Aliyun server Linux System installation configuration ElasticSearch Search engine

2、Linux In the system ElasticSearch Search engine installation configuration Head plug-in unit

3、ElasticSearch Search engine installation and configuration of Chinese word segmentation IK plug-in unit

4、ElasticSearch Search engine installation configuration Pinyin plug-in pinyin

5、ElasticSearch The search engine is JavaWeb Application in the project

One 、IK brief introduction

ElasticSearch( hereinafter referred to as ES) The default participator is the standard participator Standard, If it is used directly in the search of Chinese content , Chinese words are divided into Chinese characters one by one , Therefore, the introduction of Chinese word segmentation IK We can solve this problem , At the same time, users can configure their own extended dictionary 、 Remote extended dictionary, etc .

Two 、IK install

1、 First, go to GitHub Download installation package ( Pay attention to the version and ES Corresponding , If there is no corresponding version , Modify after decompression pom.xml In the document elasticsearch.version, It is suggested to check and modify the version number ), Uploaded to the /home/ Catalog , And unzip to the current directory , As shown in the figure below :

 vim /home/elasticsearch-analysis-ik-6.3./pom.xml

2、 Then switch to the decompression directory to compile ( If not installed Maven Tools , First installation Maven To compile , Specific reference Linux install Maven):

 [root@izwz9eu3mkqq1njlkrfhc8z elasticsearch-analysis-ik-6.3.]# mvn clean install -Dmaven.test.skip

After the compilation , It will be in the current directory target/releases Find the corresponding zip package , As shown in the figure below :

3、 And then in /usr/java/elasticsearch/elasticsearch-6.3.2/plugins/ Create under directory analysis-ik, And then the above zip Unzip the package to this directory , As shown in the figure below :

 [root@izwz9eu3mkqq1njlkrfhc8z elasticsearch-analysis-ik-6.3.]# unzip /home/elasticsearch-analysis-ik-6.3./target/releases/elasticsearch-analysis-ik-6.3..zip -d /usr/java/elasticsearch/elasticsearch-6.3./plugins/analysis-ik/

                

4、 Switch to not root user , Restart ES that will do , And in Head View plug-in information in plug-in , As shown in the figure below :

3、 ... and 、IK test

IK There are two kinds of word segmentation modes of word participator :

ik_max_word: Will do the most fine-grained text splitting ,

ik_smart: Will do the most coarse-grained resolution .

Use here _analyze api Segmentation of Chinese paragraphs , As shown in the figure below :

So far, it's about introducing Linux In the system ElasticSearch Search engine installation and configuration of Chinese word segmentation IK plug-in unit , Introduction to the follow-up meeting ElasticSearch Pinyin plug-in pinyin.

If there are omissions and mistakes , Please give me some advice !

ElasticSearch Search engine installation and configuration of Chinese word segmentation IK More articles on plug-ins

  1. turn :solr6.0 Configure Chinese word breaker IK Analyzer

    solr6.0 Chinese word segmentation in Chinese IK Analyzer Configuration and solr The biggest difference in the lower version is IK Analyzer in jar Reference to package . General IK participle jar Bags are useless , because IK Traditional in participle jar I won't support it s ...

  2. I and solr( 6、 ... and )--solr6.0 Configure Chinese word breaker IK Analyzer

    from :http://blog.csdn.net/linzhiqiang0316/article/details/51554217, Thank you . Because there is no word participator set up in the front , So that the query results are quite different , And there is no ...

  3. solrcloud Configure Chinese word breaker ik

    Whether it's solr still luncene, They are not very good at Chinese word segmentation , So we generally need to use ik Chinese word segmentation . Three machines (192.168.1.236,192.168.1.237,192.168.1.238) has ...

  4. elasticsearch Plug in installation -- Chinese word segmentation ik install

    /** * System environment : vm12 Under the centos 7.2 * Current installed version : elasticsearch-2.4.0.tar.gz */ ElasticSearch There are many word splitters built in , standa ...

  5. Solr Configure Chinese word breaker IK

    1. Download or compile IK Of a participator jar Package file , And then put in  ...\apache-tomcat-8.5.16\webapps\solr\WEB-INF\lib\ This lib File directory : IK branch ...

  6. ElasticSearch Search engine installation configuration Pinyin plug-in pinyin

    Recent papers ElasticSearch series : 1. Aliyun server Linux System installation configuration ElasticSearch Search engine 2.Linux In the system ElasticSearch Search engine installation configuration Head plug-in unit 3.Ela ...

  7. Linux In the system ElasticSearch Search engine installation configuration Head plug-in unit

    Recent papers ElasticSearch series : 1. Aliyun server Linux System installation configuration ElasticSearch Search engine 2.Linux In the system ElasticSearch Search engine installation configuration Head plug-in unit 3.Ela ...

  8. How to be in Elasticsearch Chinese word breaker installed in (IK) And Pinyin word splitter ?

    Statement : I use Elasticsearch The version is 5.4.0, Please install... Before installing word participator maven One : install maven https://github.com/apache/maven explain : install maven Need to be ...

  9. How to give Elasticsearch Install Chinese word breaker IK

    install Elasticsearch Install Chinese word breaker IK Steps for : 1. stop it elasticsearch 2.2 Service for 2. Download the corresponding elasticsearch-analysis-ik Plug in installation package ( edition ...

Random recommendation

  1. sublime3 Cracked versions sublime3 Registration code

    Sublime Text 3 Official website :http://www.sublimetext.com/ Mac Download address : http://c758482.r82.cf2.rackcdn.com/Sublime% ...

  2. Complete a simple Python Program , Used to achieve a simple addition, subtraction, multiplication and division calculator function

    #!/bin/usr/env python#coding=utf-8''' Complete a simple Python Program , Used to achieve a simple addition, subtraction, multiplication and division calculator function '''try: a=int(raw_input(" ...

  3. TCP What we need to know about

    1.TCP It's a streaming protocol . TCP Follow UDP The difference is ,TCP Sending the past is stream, That is to say, the packets sent for the first time and the packets sent for the second time may stick together , The so-called sticking bag problem http://blog.csdn.ne ...

  4. ▲▲▲▲▲▲▲▲▲▲▲yum Source configuration ( Local and ftp)▲▲▲▲▲▲▲▲▲▲▲▲▲v

    *************** This machine yum Source **************** 1. First turn on the DVD Inside OS Mirror image mount Handle , If you insert the CD-ROM drive automatically mount Words , Generally in /media below , such as RHEL_6.3 ...

  5. below css hack Which browsers do you use

    <!DOCTYPE html><html lang="en"><head>    <meta charset="UTF-8&qu ...

  6. Qt Window layout good

    Layout related objects and introduction All controls on the form must have a proper size and position .Qt Some classes are provided to arrange the controls on the form , There are mainly :QHBoxLayout,QVBoxLayout,QGridLayout,QStackLa ...

  7. Walk into C Standard library (3)——&quot;stdio.h&quot; Medium getc and ungetc

    Continued . Look again. getc and ungetc The implementation of the . Before we look at the implementation of these two functions , Let's first think about what these two functions need to do . int getc(FILE *stream) explain : function getc from stream Point to ...

  8. CodeForces 225C Barcode DP

    It's the same thing dp , I think it's very clever There are only white and black blocks in the matrix , requirement repaint After that, the following conditions are met : One color per column According to the input range x, y The stripe width is required to be in [x, y] Between Data range : n, m, x and ...

  9. 【HDU】4888 Redraw Beautiful Drawings Network flow 【 Infer whether the solution is unique 】

    Portal :pid=4888">[HDU]4888 Redraw Beautiful Drawings Topic analysis : It was a network flow during the game , But it didn't come out . All kinds of negative examples push yourself down ( The reason is ...

  10. android Basics ( One )

    wrap_conten: The actual text content of the package match_parent: The current control fills the parent class container :2.3api A property value added after fill_parent: The actual text content of the package , stay 2.3api A previous property value a ...