lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ard Schrijvers" <a.schrijv...@hippo.nl>
Subject RE: How to read values of a field efficiently
Date Tue, 21 Aug 2007 09:52:01 GMT

> > 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.

:-) 

Ard





Mime
View raw message