Details
-
Improvement
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
4.0
-
None
-
None
Description
If I simply uncomment the jarowinkler spellchecker in the Solr 4.0 example I get a nasty looking exception because the solrconfig.xml element for the distanceMeasure parameter has white space to format the XML nicely.
The exception:
Jan 19, 2013 11:41:04 PM org.apache.solr.core.CoreContainer create SEVERE: Unable to create core: collection1 org.apache.solr.common.SolrException: Error loading class ' org.apache.lucene.search.spell.JaroWinklerDistance ' at org.apache.solr.core.SolrCore.<init>(SolrCore.java:721) ... Caused by: org.apache.solr.common.SolrException: Error loading class ' org.apache.lucene.search.spell.JaroWinklerDistance ' at org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.java:436) ... Caused by: java.lang.ClassNotFoundException: org.apache.lucene.search.spell.JaroWinklerDistance at java.net.URLClassLoader$1.run(Unknown Source)
The Solr 4.0 example XML from solrconfig.xml:
<!-- a spellchecker that uses a different distance measure --> <!-- <lst name="spellchecker"> <str name="name">jarowinkler</str> <str name="field">name</str> <str name="classname">solr.DirectSolrSpellChecker</str> <str name="distanceMeasure"> org.apache.lucene.search.spell.JaroWinklerDistance </str> </lst> -->