Re: Developing custom tokenizer/filter in solr 5.4.1

2017-11-08 Thread kumar gaurav
Problem is resolved now . Thanks a lot Erick .! :) Will catch you in next problem soon :) . You have saved a lot of time for me . On Thu, Nov 9, 2017 at 2:06 AM, Erick Erickson wrote: > Why are you extending TokenizerFactory? What you have is a filter > factory which should extend TokenFi

Re: Developing custom tokenizer/filter in solr 5.4.1

2017-11-08 Thread Erick Erickson
Why are you extending TokenizerFactory? What you have is a filter factory which should extend TokenFilterFactory and optionally be MultiTermAware. I'd use LowerCaseFitlerFactory as a model. Tokenizers break up the incoming stream, filters do something with the tokens emitted by the tokenizer. On W

Re: Developing custom tokenizer/filter in solr 5.4.1

2017-11-08 Thread kumar gaurav
Very much thanks for reply Erick ! Now ClassCastException is gone . It have corrected my fault . So I am loading plugin correctly because is not giving me no class found exception in solrconfig.xml in managed-schema Now I am facing new error that is foll

Re: Developing custom tokenizer/filter in solr 5.4.1

2017-11-08 Thread Erick Erickson
OK, if you're compiling and running against the same versions, then that error means that you haven't set your paths correctly so Solr can find your custom jar. In solrconfig.xml you should add a directive that points to your custom jar file. I usually start by using an absolute path here until I

Re: Developing custom tokenizer/filter in solr 5.4.1

2017-11-07 Thread kumar gaurav
Hi Erick I am very happy to see your reply . It was mistakenly written 5.4.1 in last mail . I am developing plugin in solr-5.2.1 . i am compiling jars and executing for the same version i.e. 5.2.1 , yet i am getting following error Caused by: org.apache.solr.common.SolrException: Plugin init fa

Re: Developing custom tokenizer/filter in solr 5.4.1

2017-11-07 Thread Erick Erickson
Looks to me like you're compiling against the jars from one version of Solr and executing against another. /root/solr-5.2.1/server/solr/#/conf/managed-schema yet you claim to be using 5.4.1 On Tue, Nov 7, 2017 at 12:00 PM, kumar gaurav wrote: > Hi > > I am developing my own custom filter in

Developing custom tokenizer/filter in solr 5.4.1

2017-11-07 Thread kumar gaurav
Hi I am developing my own custom filter in solr 5.4.1. I have created a jar of a filter class with extend to TokenizerFactory class . When i loaded in to sol config and add my filter to managed-schema , i found following error - org.apache.solr.common.SolrException: Could not load conf for core