I am looking for how to create custom filter or tokenizer, I check this blog http://solr.pl/en/2012/05/14/developing-your-own-solr-filter/ but they have not described how to setup your IDE, how to compile your code or add libs etc. I don't know how to compile code after fallowing above article, This is very old blog for solr3 version.
Please give me suggestion where i should be starting for writing filter, how to compile or share any suitable article if exist in web.
Generally speaking I assume you want to write a Solr plugin  ( or you are forking Solr instead?)
So you need to package your jar.
You can setup your IDE as you usually do, and use a building framework such as Maven/Gradle.
After you have your jar you can easily import it in Solr, specifying the location in the solrconfig.xml.
thanks andrea for your help, I created few solr plugin that working fine, but still i am stuck to debug the code using eclipse, as you mentioned below url.
In this url, i could not run the junit code, i couldn't run StartDevSolr file(its dosn't showing me junit run/debug), when I removed abstract method from StartDevSolr class the it showing me below error,
Assertions mismatch: -ea was not specified but -Dtests.asserts=true
Feb 08, 2017 10:30:29 AM com.carrotsearch.randomizedtesting.RandomizedRunner runSuite
SEVERE: Panic: RunListener hook shouldn't throw exceptions.
I tried above code using solr 6.2.0.
I am newone for jnuit may be i am getting this issue, if you have any more debug url, let me know.
or suggest me?
my fault: a point is missing there, as suggested
/"//*-ea *//was not specified but ...."/
You need to add the "-ea" VM argument. If you are in Eclipse,
/Run >> Run Configurations/
then in the dialog that appears, select the run configuration
corresponding to that class (StartDevSolr), and click on the second tab
("Arguments"). There you will find two text areas, type *-ea* in the "VM
On 08/02/17 06:09, Mugeesh Husain wrote:
> thanks andrea for your help, I created few solr plugin that working fine, but
> still i am stuck to debug the code using eclipse, as you mentioned below
> url.http://andreagazzarini.blogspot.in/2016/11/quickly-debug-your-solr-add-on.htmlIn > this url, i could not run the junit code, i couldn't run StartDevSolr
> file(its dosn't showing me junit run/debug), when I removed abstract method
> from StartDevSolr class the it showing me below error, Assertions
> mismatch: -ea was not specified but -Dtests.asserts=trueFeb 08, 2017
> 10:30:29 AM com.carrotsearch.randomizedtesting.RandomizedRunner
> runSuiteSEVERE: Panic: RunListener hook shouldn't throw
> exceptions.java.lang.NullPointerException at
> tried above code using solr 6.2.0.I am newone for jnuit may be i am getting
> this issue, if you have any more debug url, let me know.or suggest me?
> View this message in context: http://lucene.472066.n3.nabble.com/How-to-create-solr-custom-filter-tp4317767p4319258.html > Sent from the Solr - User mailing list archive at Nabble.com.