Re: Modifying DefaultSolrHighlighter

2015-05-06 Thread Dmitry Kan
Thanks, David. Will let you know, how it went. On 5 May 2015 at 20:01, david.w.smi...@gmail.com wrote: > Yes. > > On Tue, May 5, 2015 at 8:29 AM Dmitry Kan wrote: > >> Hi David, >> >> Thanks for replying so quick! Indeed, the NPE points to SolrCore being >> null. So of the following two ctors:

Re: Modifying DefaultSolrHighlighter

2015-05-05 Thread david.w.smi...@gmail.com
Yes. On Tue, May 5, 2015 at 8:29 AM Dmitry Kan wrote: > Hi David, > > Thanks for replying so quick! Indeed, the NPE points to SolrCore being > null. So of the following two ctors: > > public DefaultSolrHighlighter() { > } > > public DefaultSolrHighlighter(SolrCore solrCore) { > this.solrCore =

Re: Modifying DefaultSolrHighlighter

2015-05-05 Thread Dmitry Kan
Hi David, Thanks for replying so quick! Indeed, the NPE points to SolrCore being null. So of the following two ctors: public DefaultSolrHighlighter() { } public DefaultSolrHighlighter(SolrCore solrCore) { this.solrCore = solrCore; } should we use the second one? Regards, Dmitry On 5 May 2

Re: Modifying DefaultSolrHighlighter

2015-05-05 Thread david.w.smi...@gmail.com
Hi Dmitry, I am pretty well versed in the sub-class-ability of DefaultSolrHighlighter. Most likely the problem you see is that you are using the no-arg constructor. Instead, pass in a SolrCore. It is called via reflection. In 5.2 I removed the no-arg constructor. ~ David On Tue, May 5, 2015

Modifying DefaultSolrHighlighter

2015-05-05 Thread Dmitry Kan
Hi, We need to modify the behaviour of DefaultSolrHighlighter class slightly. When we tried to extend the class, Solr prints NPE. Is there some reason to the NPE when extending the class? Thanks, Dmitry Kan