You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Xue-Feng Yang <ju...@yahoo.com> on 2011/09/16 05:05:18 UTC

ClassCastException: SmartChineseWordTokenFilterFactory to TokenizerFactory

Hi all,

I am trying to use SmartChineseWordTokenFilterFactory in solr 3.4.0, but come to the error

SEVERE: java.lang.ClassCastException: org.apache.solr.analysis.SmartChineseWordTokenFilterFactory cannot be cast to org.apache.solr.analysis.TokenizerFactory


Any thought?

Re: ClassCastException: SmartChineseWordTokenFilterFactory to TokenizerFactory

Posted by Lance Norskog <go...@gmail.com>.
Tokenizers and TokenFilters are different. Look in the schema for how other
TokenFilterFactory classes are used.

On Thu, Sep 15, 2011 at 8:05 PM, Xue-Feng Yang <ju...@yahoo.com> wrote:

> Hi all,
>
> I am trying to use SmartChineseWordTokenFilterFactory in solr 3.4.0, but
> come to the error
>
> SEVERE: java.lang.ClassCastException:
> org.apache.solr.analysis.SmartChineseWordTokenFilterFactory cannot be cast
> to org.apache.solr.analysis.TokenizerFactory
>
>
> Any thought?




-- 
Lance Norskog
goksron@gmail.com