(iv) Solr6.4.1 configuration Chinese word breaker IK Analyzer detailed

Source: Internet
Author: User
Tags solr tomcat
Solr6.4.1 configuration Chinese word breaker IK Analyzer detailed

1. Download IK analyzer:http://pan.baidu.com/s/1qy8s3ny

2. Copy the ikanalyzer.cfg.xml,mydict.dic,stopword.dic three files into the classes of the TOMCAT/SOLR project Web-info

3. Copy the Ik-analyzer-solr6.x.jar rack package into the lib of the TOMCAT/SOLR project Web-info

4. Modify Solr-home in/my_core/conf/: Schema.xml file
Add the following code to the FieldType sibling:

<!--configuration participle start-->
  <field name= ' Text_ik ' type= ' Text_ik ' indexed= ' true ' stored= ' true ' multivalued= ' Fasle ' />
  <fieldtype name= "Text_ik" class= "SOLR. TextField ">     
     <analyzer class=" Org.wltea.analyzer.lucene.IKAnalyzer "/>     
  </fieldType> 
<!--configuring word breakers end-->  

5. Restart Tomcat

6. Test:

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.