[
https://issues.apache.org/jira/browse/SOLR-8063?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Mikhail Khludnev closed SOLR-8063.
----------------------------------
Resolution: Won't Fix
https://cwiki.apache.org/confluence/display/solr/Spell+Checking has correct
*DirectSolrSpellChecker* configuration snippet
{code}
<searchComponent name="spellcheck" class="solr.SpellCheckComponent">
<lst name="spellchecker">
...
<str name="classname">solr.DirectSolrSpellChecker</str>
...
<float name="accuracy">0.5</float>
{code}
however, if user copies it and *tries to use with other implementations*, like
{{AbstractLuceneSpellChecker}} descendants {{FileBasedSpellChecker}},
{{IndexBasedSpellChecker}} *with the same config* (s)he hits
{{ClassCastException: java.lang.Float}}.
I checked configs in the distro and wikis, they are all correct.
Wikis could be more informative about how to configure {{<str
name="accuracy>0.5</str>}}, and perhaps about other parameters for those
spellcheckers too, but so far it doesn't seem like a (severe) issue.
> SpellCheck configuration causes ClassCastException
> --------------------------------------------------
>
> Key: SOLR-8063
> URL: https://issues.apache.org/jira/browse/SOLR-8063
> Project: Solr
> Issue Type: Bug
> Reporter: Mikhail Khludnev
> Assignee: Mikhail Khludnev
> Labels: starter
>
> As reported by the user, see linked mail. It should be obsolete configs/docs.
> {code}
> Caused by: java.lang.ClassCastException: java.lang.Float cannot be cast to
> java.lang.String
> at
> org.apache.solr.spelling.AbstractLuceneSpellChecker.init(AbstractLuceneSpellChecker.java:97)
> at
> org.apache.solr.spelling.IndexBasedSpellChecker.init(IndexBasedSpellChecker.java:57)
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]