The issue has been solved and sorry for my negligence.
At 2012-12-21 11:10:53,SuoNayi <suonayi2...@163.com> wrote: >Hi all, for solrcloud(solr 4.0) how to add the third analyzer? >There is a third analyzer jar and I want to integrate it with solrcloud. >Here are my steps but the ClassNotFoundException is thrown at last when >startup. >1.add the fieldType in the schema.xml and here is a snippet : ><!-- ikanalyzer --> ><fieldType name="text_ik" class="solr.TextField" > ><analyzer class="org.wltea.analyzer.lucene.IKAnalyzer"/> ><analyzer type="index"> ><tokenizer class="org.wltea.analyzer.solr.IKTokenizerFactory" >isMaxWordLength="false"/> ><filter class="solr.StopFilterFactory" ignoreCase="true" >words="stopwords.txt"/> ><filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" >generateNumberParts="1" catenateWords="1" catenateNumbers="1" catenateAll="0" >splitOnCaseChange="1"/> ><filter class="solr.LowerCaseFilterFactory"/> ><filter class="solr.EnglishPossessiveFilterFactory" >protected="protwords.txt"/> ><filter class="solr.RemoveDuplicatesTokenFilterFactory"/> ></analyzer> ><analyzer type="query"> ><tokenizer class="org.wltea.analyzer.solr.IKTokenizerFactory" >isMaxWordLength="false"/> ><filter class="solr.StopFilterFactory" ignoreCase="true" >words="stopwords.txt"/> ><filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" >generateNumberParts="1" catenateWords="1" catenateNumbers="1" catenateAll="0" >splitOnCaseChange="1"/> ><filter class="solr.LowerCaseFilterFactory"/> ><filter class="solr.EnglishPossessiveFilterFactory" >protected="protwords.txt"/> ><filter class="solr.RemoveDuplicatesTokenFilterFactory"/> ></analyzer> ></fieldType> >2. add the IKAnalyzer.cfg.xml and stopword.dic files into the classes >directory of the solr.war(open the war and add those two files). >3.use the start.jar to start up and the ClassNotFoundException is thrown. > > >Could some help me to figure out what's wrong or tell me where I can add the >extra/third jar lib into the classpath of the solrcloud? > > >Thanks, > > >SuoNayi