You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Mikhail Khludnev (JIRA)" <ji...@apache.org> on 2015/10/26 21:40:28 UTC
[jira] [Closed] (SOLR-8063) SpellCheck configuration causes
ClassCastException
[ 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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org