http://code.google.com/p/mmseg4j/
下载最新版本
unzip 到mm目录
cp data /usr/local/solr/example/solr/data
cp dist /usr/local/solr/example/dist
cp mmseg4j-all-1.8.5.jar /usr/local/tomcat/webapp/solr/lib/
可能需要mkdir lib这个目录
SEVERE: org.apache.solr.common.SolrException: Error loading class ‘com.chenlb.mmseg4j.solr.MMSegTokenizerFactory’
应该是lib放错了位置
放到solr_home中就好了
放到/usr/local/solr/example/solr/lib(lib要建立)
然后重启,就好了

Recent Comments