lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <>
Subject Re: Factory cannot be cast
Date Mon, 23 Nov 2009 18:59:13 GMT

: previously I was using a NGramFilterFactory for the completion on my website
: but the EdgeNGramTokenizerFactory seems to be more pertinent.
: I defined my own field type  but when I start solr I got the error log :
: GRAVE: java.lang.ClassCastException:
: org.apache.solr.analysis.EdgeNGramTokenizerFactory cannot be cast to
: org.apache.solr.analysis.Toke
: nFilterFactory

You can't use a TokenizerFactory as a TokenFilterFacotry --- they do very 
different things.  A Tokenizer is responsible for comverting a stream of 
characters into a stream of Tokens, while a TokenFilter is responsile for 
processing an existing stream of Tokens and producing a (odified) stream 
of Tokens.


View raw message