Re: Error instantiating a Custom Filter in Solr

2013-11-10 Thread Dileepa Jayakody
To: solr-user@lucene.apache.org > Subject: Re: Error instantiating a Custom Filter in Solr > > > Well, I think Jack Krupansky's book has some examples, at $10 it's probably > a steal. > > Best, > Erick > > > > > On Fri, Nov 8, 2013 at 1:4

Re: Error instantiating a Custom Filter in Solr

2013-11-08 Thread Jack Krupansky
-- Jack Krupansky -Original Message- From: Erick Erickson Sent: Friday, November 08, 2013 10:36 AM To: solr-user@lucene.apache.org Subject: Re: Error instantiating a Custom Filter in Solr Well, I think Jack Krupansky's book has some examples, at $10 it's probably a steal. Best, Eri

Re: Error instantiating a Custom Filter in Solr

2013-11-08 Thread Erick Erickson
Well, I think Jack Krupansky's book has some examples, at $10 it's probably a steal. Best, Erick On Fri, Nov 8, 2013 at 1:49 AM, Dileepa Jayakody wrote: > Hi Erick, > > Thanks a lot for the pointer. > I looked at the LowerCaseFilterFactory class [1] and it's parent abstract > class AbstractAn

Re: Error instantiating a Custom Filter in Solr

2013-11-07 Thread Dileepa Jayakody
Hi Erick, Thanks a lot for the pointer. I looked at the LowerCaseFilterFactory class [1] and it's parent abstract class AbstractAnalysisFactory API [2] , and modified my custom filter factory class as below; public class ContentFilterFactory extends TokenFilterFactory { public ContentFilterFacto

Re: Error instantiating a Custom Filter in Solr

2013-11-07 Thread Erick Erickson
Well, the example you linked to is based on 3.6, and things have changed assuming you're using 4.0. It's probably that your ContentFilter isn't implementing what it needs to or it's not subclassing from the correct class for 4.0. Maybe take a look at something simple like LowerCaseFilterFactory a

Error instantiating a Custom Filter in Solr

2013-11-07 Thread Dileepa Jayakody
Hi All, I'm a novice in Solr and I'm continuously bumping into problems with my custom filter I'm trying to use for analyzing a fieldType during indexing as below; Below is my custom FilterFactory class; *public class ContentFilterFactory extends TokenFilterFactory {* * publ