Elasticsearch Installing IK Chinese word-breaker

Source: Internet
Author: User

One, download the latest IK participle source from GitHub to local


git clone Https://github.com/medcl/elasticsearch-analysis-ik
Clone to local, copy the config/ik/entire directory in the Elasticsearch-analysis-ik directory to the config directory of the Elasticsearch installation directory.


Second, overwrite the elasticsearch.yml file in config in the Elasticsearch-analysis-ik directory with the elasticsearch.yml file in the Config directory elasticsearch the installation directory.

third, go to the Elasticsearch-analysis-ik directory of the Clone , and execute the MAVEN command package:

MVN Clean Package



If you do not have MAVEN tools installed, you will need to install the Maven tool and install the specific installation instructions on the website.

After executing the above command, IK's word breaker is ready, and the installation begins.

Four, run the plugin command in the bin directory under the Elasticsearch installation path to install the word breaker package that was just compiled:

Plugin-install Analysis-ik-url file:///#{project_path}/elasticsearch-analysis-ik/target/releases/ Elasticsearch-analysis-ik-1.4.0.zip



This way the IK Chinese participle is installed.

Elasticsearch Installing IK Chinese word-breaker

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.