ot;content" and "hits[i].doc" I see that are not null.
> The problem is in this line
>
> "TermPositionVector tpv = (TermPositionVector)reader.getTermFreqVecto
> (hits[i].doc,"contents"); "
>
> hits[i].doc represent the Doc id or ?
>
> Thanks
its[i].doc" I see that are not null.
The problem is in this line
"TermPositionVector tpv = (TermPositionVector)reader.getTermFreqVecto
(hits[i].doc,"contents"); "
hits[i].doc represent the Doc id or ?
Thanks
--
View this message in c
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:
> http://lucene.472066.n3.nabble.com/highlighter-by-using-term-offsets-tp3527712p3533380.html
> Sen
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
:
>
> I'm writing a highlighter by using term offsets as follows:
>
>
> IndexReader reader = IndexReader.open( indexPath );
> TermPositionVector tpv = (TermPositionVector)reader.getTermFreqVector(
> hits[i].doc,"contents");
>
> Whe
I'm writing a highlighter by using term offsets as follows:
IndexReader reader = IndexReader.open( indexPath );
TermPositionVector tpv = (TermPositionVector)reader.getTermFreqVector(
hits[i].doc,"contents");
When I run the searcher, I face this error in
Ter