Second Step SOLR configuration Chinese word segmentation ik Analyzer

Source: Internet
Author: User
Tags solr

1, download IK Analyzer 2012ff_hf1.zip decompression such as: annotations (IK Analyzer 2012 to support the version above solr4.0)

: Http://pan.baidu.com/s/1c0nMOhE

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/58/DE/wKioL1S_UGfBUsOUAAFiedcGFJI967.jpg "title=" Qq20150121150425.png "alt=" Wkiol1s_ugfbusouaafiedcgfji967.jpg "/>


2, add IK Analyzer, FF Chinese word: Put Ikanalyzer2012_ff folder Ikanalyzer2012_ff.jar in Tomcat1.6,webapps\solr\web-inf\lib directory, Modify the E:\solr\collection1\conf\schema.xml in <types></types> add a bar:

<!--IK Analyzer participle--><fieldtype name= "Text_zh" class= "SOLR. TextField "> <analyzer class=" Org.wltea.analyzer.lucene.IKAnalyzer "/></fieldtype>


modified to  type= "Text_ zh "

 <field name= "text"  type= "Text_zh"  indexed= "true"  stored= "false"  multivalued= "true"/> 

3, restart Tomcat, open the browser, type: http://localhost:8080/solr/#/collection1/analysis      filetype Select: Text, enter Chinese in field Value (Index), and then press Aanlyse Values will travel Chinese participle, such as effect:

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/58/E1/wKiom1S_VHOjYWK0AAKl0mHOEQs892.jpg "title=" Qq20150121152522.png "alt=" Wkiom1s_vhojywk0aakl0mhoeqs892.jpg "/>


This article from "Ertan to win" blog, declined reprint!

Second Step SOLR configuration Chinese word segmentation ik Analyzer

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.