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 2015 at 15:03, [email protected] <[email protected]>
wrote:
> 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 at 4:24 AM Dmitry Kan <[email protected]> wrote:
>
>> 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
>>
>