You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Spyros Kapnissis (Issue Comment Edited) (JIRA)" <ji...@apache.org> on 2011/11/30 00:43:39 UTC
[jira] [Issue Comment Edited] (SOLR-2767) ClassCastException when
using FieldAnalysisResponse and the analyzer list contains the
CharMappingFilter (or any CharFilter)
[ https://issues.apache.org/jira/browse/SOLR-2767?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13159656#comment-13159656 ]
Spyros Kapnissis edited comment on SOLR-2767 at 11/29/11 11:42 PM:
-------------------------------------------------------------------
A simple patch to avoid the ClassCastException by doing an instanceof check. Any charfilter is skipped completely on the phases analysis.
Not a complete solution, but apparently some non-trivial redesign of the analysis functionality is needed to support charfilters.
was (Author: spyk):
A simple patch to avoid the ClassCastException by doing an instanceof check. Any charfilter is skipped completely on the phases analysis.
Not a complete solution, but apparently some non-trivial redesign of the functionality is needed to support charfilters.
> ClassCastException when using FieldAnalysisResponse and the analyzer list contains the CharMappingFilter (or any CharFilter)
> ----------------------------------------------------------------------------------------------------------------------------
>
> Key: SOLR-2767
> URL: https://issues.apache.org/jira/browse/SOLR-2767
> Project: Solr
> Issue Type: Bug
> Affects Versions: 3.3, 4.0
> Reporter: Spyros Kapnissis
> Attachments: SOLR-2767.patch
>
>
> I use the FieldAnalysisResponse class in order to gather some information about the analysis process. However, I get a ClassCastException (cannot convert String to NamedList<Object>) thrown at AnalysisResponseBase.buildPhases method if I have included the CharMappingFilter in my configuration.
> It seems that a CharFilter does not create a NamedList<Object>, but a String entry in the analysis response.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org