On 3/17/2016 10:39 AM, Victor D'agostino wrote: > I have a java.lang.ClassNotFoundException: solr.MockTokenizerFactory > after a fresh 5.5.0 setup with DIH and a collection named "db". > > The tgz file is from > http://apache.crihan.fr/dist/lucene/solr/5.5.0/solr-5.5.0.tgz > > Any idea why this class is missing at startup ? > Should i download tierce parties jar files or export the CLASSPATH ?
None of the 5.5.0 example configs include this tokenizer. You must be providing your own config. This class is part of the lucene test framework, which is not installed by default with Solr, but it IS included in the Solr download. You will find the lucene test framework jar in dist/test-framework/lucene-libs. If you install that jar (and any dependencies it might have) in an appropriate location (I would recommend ${solr.solr.home}/lib), you should be able to use MockTokenizerFactory. I'm not sure why you'd want to do this -- the class is intended for unit tests, it would not really have much usefulness in an actual Solr deployment ... but whatever your reasons, it *is* doable. Thanks, Shawn