Re: ClassCastException SOLR

2010-07-09 Thread Chris Hostetter
: If you look at the Lucene factories, they all subclass from : BaseTokenFilterFactory which then subclasses from : BaseTokenStreamFactory. That last one does various things for the : child factories (I don't know what they are). Note also that if you really did copy the body of SynonymFilterFact

Re: ClassCastException SOLR

2010-07-07 Thread Lance Norskog
TokenFilterFactory is an interface. Your factory class has to implement this interface. If you look at the Lucene factories, they all subclass from BaseTokenFilterFactory which then subclasses from BaseTokenStreamFactory. That last one does various things for the child factories (I don't know wha

ClassCastException SOLR

2010-07-07 Thread Martin Kysel
Hi, I am trying to make a Lucene module for SKOS-based synonym expansion. As I wanted to implement the Filter in SOLR, I get a ClassCastException. So I tried to take one of the existing SOLR Filters and FilterFactories, change the package information, compress into a jar and use it as a plugin.