Re: highlighter by using term offsets

2011-11-24 Thread Ian Lea
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

Re: highlighter by using term offsets

2011-11-24 Thread starz10de
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

Re: highlighter by using term offsets

2011-11-24 Thread Ian Lea
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

Re: highlighter by using term offsets

2011-11-24 Thread starz10de
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

Re: highlighter by using term offsets

2011-11-23 Thread Ian Lea
: > >  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

highlighter by using term offsets

2011-11-22 Thread starz10de
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