Re: Listing fields in an index

2009-02-10 Thread Murat Yakici
Use myIndexReader.|*getFieldNames *(IndexReader.FieldOption

Re: Listing fields in an index

2008-08-13 Thread John Patterson
Thanks! I was looking in IndexReader for a good couple of minutes and didn't see that! Erik Hatcher wrote: > > > On Aug 13, 2008, at 5:02 AM, John Patterson wrote: >> How do I list all the fields in an index? Some documents do not >> contain all >> fields. > > Have a look at IndexReader#ge

Re: Listing fields in an index

2008-08-13 Thread Erik Hatcher
On Aug 13, 2008, at 5:02 AM, John Patterson wrote: How do I list all the fields in an index? Some documents do not contain all fields. Have a look at IndexReader#getFieldNames(). That'll give you back field names regardless of which documents have them. Erik --