: As I understand - IndexReader.terms() returns a termEnum of all the
: terms in the index, and I would have to iterate through all of them to
: pick out the ones from the fields that I want. Is there a better way
: to do this?
the TermEnum is garunteed to be in order. you can seek to a particul
FieldCache.getStringIndex(reader,fieldName)
Good luck
Jelda
> -Original Message-
> From: Chun Wei Ho [mailto:[EMAIL PROTECTED]
> Sent: Thursday, May 04, 2006 12:36 PM
> To: java-user@lucene.apache.org
> Subject: Obtain terms for only particular field(s)
>
> Hi,
>
> I have a pretty lar