Jack Krupansky created SOLR-4322:
------------------------------------
Summary: SpellChecker distanceMesaure parameter should be trimmed
of white space for clean XML formatting
Key: SOLR-4322
URL: https://issues.apache.org/jira/browse/SOLR-4322
Project: Solr
Issue Type: Improvement
Components: spellchecker
Affects Versions: 4.0
Reporter: Jack Krupansky
Priority: Minor
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:
{code}
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)
{code}
The Solr 4.0 example XML from solrconfig.xml:
{code}
<!-- 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>
-->
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]