Re: Retrieving field names from an index

2007-06-05 Thread Mohammad Norouzi
Hi you can get them from searcher, if documents in your index are the same Enumeration fields = searcher.doc(0).fields(); On 6/5/07, Stadler Hans-Christian <[EMAIL PROTECTED]> wrote: Hi, how would I efficently retrieve the names of all possible fields present in an index? One way would be

Re: Retrieving field names from an index

2007-06-05 Thread Erick Erickson
Would IndexReader.getFieldNames work? Erick On 6/5/07, Stadler Hans-Christian <[EMAIL PROTECTED]> wrote: Hi, how would I efficently retrieve the names of all possible fields present in an index? One way would be to iterate over all terms and extract the field names, but it doesn't look like