FAQ
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.

Why I want to do it using index directory is because my indexing code and
searching codes are in a different file. So it would be better if I can
access field names using the directory.

I tried with

IndexReader ir = new IndexReader(FSDirectory.open(indexDir));

Why isn't this correct?

I am a newbie in lucene, so may be these doubts can be silly.

Thanks

Search Discussions

Discussion Posts

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 2 | next ›
Discussion Overview
groupjava-user @
categorieslucene
postedJun 9, '11 at 8:03a
activeJun 9, '11 at 9:08a
posts2
users2
websitelucene.apache.org

2 users in discussion

Ian Lea: 1 post Pranav goyal: 1 post

People

Translate

site design / logo © 2023 Grokbase