IndexReader.getFieldNames()? public abstract Collection<String> getFieldNames(IndexReader.FieldOption fldOption)
Use that to get indexed fields and pass that list to MultiFieldQueryParser. -- Ian. On Tue, Mar 15, 2011 at 10:46 AM, shrinath.m <shrinat...@webyog.com> wrote: > Catchall field has its own disadvantages of increasing index size. > MultiFieldQueryParser has to know the field names before hand. > > How do I do a multi field search > - without knowing fields in the index > - without having a CatchAll field > > > PS : I went through the Lucene in Action book, and in chapter 13 ( SIREn > case study ), he says SIREn does it. I also wanted to know how can I do the > same with similar efficiency ? > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/How-to-do-an-all-field-search-without-using-a-catchall-field-or-MultiFieldQueryParser-tp2681163p2681163.html > Sent from the Lucene - Java Users mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org > For additional commands, e-mail: java-user-h...@lucene.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org