in the previous article, we studiedSolrfor quick start and forMysqldatabase to index, today we describe how toSolrAdd Chinese word breaker1, in Baidu Search Ik-analyzer, find after download, I download is "Ikanalyzer 2012ff_hf1.zip", unzip will see the following directory
2. Copy Ikanalyzer2012ff_u1.jar to WebApps under Solr's Lib folder, copy IKAnalyzer.cfg.xml and Stopword.dic to SOLR's conf directory 3, Modify the Schema.xml file to add the following:
<fieldtypename= "Text_ik" class= "SOLR. TextField "> <analyzerclass=" Org.wltea.analyzer.lucene.IKAnalyzer "/> </fieldType>
4. Restart Tomcat to find the analysis in Collection1.
Select Text_ik and enter the kanji "Hello" and you will see
Is successful, you can also follow the PDF document given by IK
The so-called participle, is to take apart your words, for example, "I am a good person", the different granularity of the division of Fineness is not the same, some split into "I, I am, a, a, good, good, people," and some split into "I am, a, good person" it depends on your analysis granularity
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
SOLR Learning document Add Word Thesaurus