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 large index and I would like to obtain all 
> the Terms for only one or two particular fields.
> 
> 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?
> 
> Thanks :)
> 
> CW
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to