how to debug my own analyzer in solr

2013-10-21 Thread Mingzhu Gao
Dear solr expert , I would like to write my own analyser ( Chinese analyser ) and integrate them into solr as solr plugin . From the log information , the custom analyzer can be loaded into solr successfully . I define my fieldType with this custom analyzer. Now the problem is that , when I

Re: how to debug my own analyzer in solr

2013-10-21 Thread Mingzhu Gao
More information about this , the custom analyzer just implement createComponents of Analyzer. And my configure in schema.xml is just something like : fieldType name=text_cn class=solr.TextField analyzer class=my.package.CustomAnalyzer / /fieldType From the log I cannot see any error

Re: how to debug my own analyzer in solr

2013-10-21 Thread Siegfried Goeschl
Thread Dump and/or Remote Debugging?! Cheers, Siegfried Goeschl On 21.10.13 11:58, Mingzhu Gao wrote: More information about this , the custom analyzer just implement createComponents of Analyzer. And my configure in schema.xml is just something like : fieldType name=text_cn

Re: how to debug my own analyzer in solr

2013-10-21 Thread Koji Sekiguchi
Hi Mingz, If you use Eclipse, you can debug Solr with your plugin like this: # go to Solr install directory $ cd $SOLR $ ant run-example -Dexample.debug=true Then connect the JVM from Eclipse via remote debug port 5005. Good luck! koji (13/10/21 18:58), Mingzhu Gao wrote: More information