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