On Tue, 2007-08-21 at 11:52 +0200, Ard Schrijvers wrote:
> > > you're missing the key piece that Ard alluded to ... the 
> > there is one
> > > ordere list of all terms stored in the index ... a TermEnum lets you
> > > iterate over this ordered list, and the 
> > IndexReader.terms(Term) method
> > > lets you efficiently start at an arbitrary term.  if you are only
> > > interested in terms for a specific field, once your 
> > TermEnum returns a
> > > differnet field, you can stop -- you will never get any 
> > more terms for
> > > the field you care about (hence Ard's terms.term().field() 
> > == field in his
> > > loop conditional)
> > Ok, I wasn't aware of that - I thought that Ards while loop would be
> > wrong, 
> 
> I am deeply hurt by your distrust.
> 
> :-) 

Shame on me :-$ 


> 
> Ard
> 
> 
> 
> 

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to