: 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.



-Hoss

Reply via email to