SOLR Learning document Add Word Thesaurus

Source: Internet
Author: User

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

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.