[ 
https://issues.apache.org/jira/browse/SOLR-2767?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Spyros Kapnissis updated SOLR-2767:
-----------------------------------

    Attachment: SOLR-2767.patch

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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to