I was referring to the MultiFieldQueryParser.parse method that doesn't require an array of BooleanClause.Occur flags.
static Query parse(Version matchVersion, String[] queries, String[] fields, Analyzer analyzer) Parses a query which searches on the fields specified. Good to hear you're on 3.0.3! -- Ian. On Thu, Mar 17, 2011 at 12:30 PM, shrinath.m <shrinat...@webyog.com> wrote: > On Thu, Mar 17, 2011 at 5:40 PM, Ian Lea [via Lucene] < > ml-node+2693169-1481141743-376...@n3.nabble.com> wrote: > >> OK, yes, if you do need to "specify certain fields as required, and >> others as prohibited" then you'll need to build and populate that >> array. There is also a parse method that doesn't require the array if >> you just want to search all the fields. >> >> > what ? where ? > I don't see any such parse method that does a all field search !! > I am seriously hoping there exists such a method and I might have missed it > !! :) > > > >> I hope that the 2_3_1 links don't indicate that you are using that version. >> >> >> > yeah, my bad... I am using 3.0.3... > http://lucene.apache.org/java/3_0_3/api/all/org/apache/lucene/queryParser/MultiFieldQueryParser.html > > <http://lucene.apache.org/java/3_0_3/api/all/org/apache/lucene/queryParser/MultiFieldQueryParser.html> > > > -- > Regards > Shrinath.M > > > -- > 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-tp2681163p2693226.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