See the javadocs for IndexReader.getFieldNames(IndexReader.FieldOption
fldOption). Also see the javadocs for your "Why isn't this correct?"
question.
Reading Lucene In Action is highly recommended for all people new to lucene.
--
Ian.
On Thu, Jun 9, 2011 at 9:03 AM, Pranav goyal wrote:
> Hi,
Hi,
I want to retrieve all the field names from my index so that I can store
them in an array to use in MutiFieldQueryParser.
One question can I do it using my index directory? If yes then a piece of
code would be really helpful as I searched out a lot but no documentation is
there on this thing.