1:从http://pinyin.sogou.com/dict/下载选择的细胞词库
2:用深蓝词库转换工具提取出txt文本
3:用ultraedit将txt文本保存为无bom utf-8格式,dos换行
4:在solr的WEB-INF下创建classes目录
5:将utf-8格式的txt词库拷贝到solr的WEB-INF/classes目录
6:在WEB-INF/classes创建IKAnalyzer.cfg.xml,内容:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
<properties>
<comment>IK Analyzer ????</comment>
<!--????????????????
<entry key="ext_dict">/mydict.dic;</entry>
-->
<!--???????????????????-->
<entry key="ext_dict">/mydict.dic;</entry>
<entry key="ext_stopwords">/ext_stopword.dic</entry>
</properties>