After all, IK can't keep up with the search engine steps ah, used to be used to IK suddenly solr5.0 but there is no corresponding version (maybe I did not find it). Here first with mmesg4j instead, feel good, integration process super simple, a few steps will be done:
1. Enter the/tomcat/webapps/solr/web-inf/lib directory and put Mmseg4j-solr-2.3.0.jar and Mmseg4j-core-1.10.0.jar in
2, enter the Solr/home directory, set up their own thesaurus, I here is the establishment of My_dic folder, inside put a wordsxxx.dic file on the line (note that their own thesaurus priority is not the default high).
Attached: can be mmseg4j-core-1.10.0.jar inside the default thesaurus itself to modify the line, and then not modify the source string Defpath = System.getproperty ("Mmseg.dic.path") Mmseg.dic.path decided to load the thesaurus priority, very simple, not much introduction.
3, enter the Schema.xml, add the following configuration:
<fieldtype name= "max-word-2" class= "SOLR. TextField "positionincrementgap=" >
<analyzer>
<tokenizer class= "Com.chenlb.mmseg4j.solr.MMSegTokenizerFactory" mode= "Max-word" dicpath= "My_dic"/>
</analyzer>
</fieldType>
<fieldtype name= "Simple" class= "SOLR. TextField "positionincrementgap=" >
<analyzer>
<tokenizer class= "Com.chenlb.mmseg4j.solr.MMSegTokenizerFactory" mode= "simple" dicpath= "My_dic"/>
</analyzer>
</fieldType>
<fieldtype name= "complex" class= "SOLR. TextField "positionincrementgap=" >
<analyzer>
<tokenizer class= "Com.chenlb.mmseg4j.solr.MMSegTokenizerFactory" mode= "complex" dicpath= "My_dic"/>
</analyzer>
</fieldType>
4. Restart SOLR and get it done.
5, as for the three-word effect of the configuration file to try it out yourself, Max should use more points
solr5.0 Integrated mmseg4j Word breaker