lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ian Lea <>
Subject Re: highlighter by using term offsets
Date Thu, 24 Nov 2011 11:44:16 GMT
OK, so you've ruled out one possible cause.  Progress!

But if you're getting NPE on line 274 and line 274 reads

TermPositionVector tpv =

then something is null where it shouldn't be.  Rule out everything you
can and what is left should be the culprit.  Basic low-tech debugging,
step by step.

If you really can't figure it out, post the smallest possible totally
self-contained unit test or program that demonstrates the problem.
And tell us which version of lucene you are using.


On Thu, Nov 24, 2011 at 11:21 AM, starz10de <> wrote:
> Hi,
> no hits are not null, I can print all retrieved docuemtns without problem.
> --
> View this message in context:
> Sent from the Lucene - Java Users mailing list archive at
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message