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 =
(TermPositionVector)reader.getTermFreqVector(hits[i].doc,"contents");

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.

--
Ian.



On Thu, Nov 24, 2011 at 11:21 AM, starz10de <farag_ah...@yahoo.com> wrote:
> Hi,
>
> no hits are not null, I can print all retrieved docuemtns without problem.
>
> --
> View this message in context: 
> http://lucene.472066.n3.nabble.com/highlighter-by-using-term-offsets-tp3527712p3533380.html
> Sent from the Lucene - Java Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
> For additional commands, e-mail: java-user-h...@lucene.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org

Reply via email to