net.paoding.analysis.exception.PaodingAnalysisException: not found the dic异常解决办法

信息: [] webapp=null path=null params={start=0&event=firstSearcher&q=solr+rocks&
rows=10} status=500 QTime=134
2012-8-10 15:41:38 org.apache.solr.common.SolrException log
严重: net.paoding.analysis.exception.PaodingAnalysisException: not found the dic
 home dirctory! D:\solr\solr\dic
        at net.paoding.analysis.knife.PaodingMaker.setDicHomeProperties(PaodingM
aker.java:321)
        at net.paoding.analysis.knife.PaodingMaker.getDicHome(PaodingMaker.java:
255)
        at net.paoding.analysis.knife.PaodingMaker.loadProperties(PaodingMaker.j
ava:187)
        at net.paoding.analysis.knife.PaodingMaker.loadProperties(PaodingMaker.j
ava:223)
        at net.paoding.analysis.knife.PaodingMaker.loadProperties(PaodingMaker.j
ava:223)
        at net.paoding.analysis.knife.PaodingMaker.getProperties(PaodingMaker.ja
va:129)
        at net.paoding.analysis.knife.PaodingMaker.make(PaodingMaker.java:99)
        at net.paoding.analysis.knife.PaodingMaker.make(PaodingMaker.java:81)
        at com.chuangs.fulltextsearch.analyzer.ChineseTokenizerFactory.create(Ch
ineseTokenizerFactory.java:51)
        at org.apache.solr.analysis.TokenizerChain.getStream(TokenizerChain.java


找不到dic home,错误提示的很清楚啊

解决方法:设置环境变量或者改里面的一个文件

方法:找到\solr\WEB-INF\classes路径下的paoding-dic-home.properties文件,下的paoding.dic.home,去掉注释,修改为你的dic路径即可。

你可能感兴趣的:(null,Solr,Path,webapp)