You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by "Cassandra Targett (Jira)" <ji...@apache.org> on 2021/09/24 17:03:00 UTC

[jira] [Commented] (SOLR-4322) SpellChecker distanceMesaure parameter should be trimmed of white space for clean XML formatting

    [ https://issues.apache.org/jira/browse/SOLR-4322?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17419881#comment-17419881 ] 

Cassandra Targett commented on SOLR-4322:
-----------------------------------------

This still exists, but only in the techproducts example configset as _default was stripped of all ancillary config options some time ago.

> 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 was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org