Li Kehua Cloud Computing Premium Group: 292870151 AC: Hadoop, NoSQL, distributed, Lucene, SOLR, Nutch configuring Chinese word breakers in SOLR Ikanalyzer
1. In the configuration file Schema.xml (under location {solr_home}/config/), the configuration information is as follows:
<!--ikanalyzer Chinese word---
<fieldtype name= "Text_ik" class= "SOLR. TextField ">
<analyzer type= "Index" >
<tokenizer class= "Org.wltea.analyzer.solr.IKTokenizerFactory" ismaxwordlength= "false"/>
<filter class= "SOLR. Stopfilterfactory "ignorecase=" true "words=" Stopwords.txt "enablepositionincrements=" true "/>
<filter class= "SOLR. Lowercasefilterfactory "/>
</analyzer>
<analyzer type= "Query" >
<tokenizer class= "Org.wltea.analyzer.solr.IKTokenizerFactory" ismaxwordlength= "true"/>
<filter class= "SOLR. Stopfilterfactory "ignorecase=" true "words=" Stopwords.txt "enablepositionincrements=" true "/>
<filter class= "SOLR. Synonymfilterfactory "synonyms=" Synonyms.txt "ignorecase=" true "expand=" true "/>
<filter class= "SOLR. Lowercasefilterfactory "/>
</analyzer>
</fieldType>
2, in the Ikanalyzer related jar package (Ikanalyzer2012_u6.jar this blog does not provide the download) put under {solr_home}/lib.
3, Test ikanalyzer Chinese word segmentation effect:
Configuring Chinese word breakers in SOLR Ikanalyzer