Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 86479 invoked from network); 17 Mar 2011 13:37:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 17 Mar 2011 13:37:39 -0000 Received: (qmail 42511 invoked by uid 500); 17 Mar 2011 13:37:37 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 42474 invoked by uid 500); 17 Mar 2011 13:37:37 -0000 Mailing-List: contact java-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-user@lucene.apache.org Delivered-To: mailing list java-user@lucene.apache.org Received: (qmail 42466 invoked by uid 99); 17 Mar 2011 13:37:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Mar 2011 13:37:37 +0000 X-ASF-Spam-Status: No, hits=0.6 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of ian.lea@gmail.com designates 209.85.214.176 as permitted sender) Received: from [209.85.214.176] (HELO mail-iw0-f176.google.com) (209.85.214.176) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Mar 2011 13:37:32 +0000 Received: by iwr19 with SMTP id 19so3838086iwr.35 for ; Thu, 17 Mar 2011 06:37:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type:content-transfer-encoding; bh=sT1nHhMkYL3Y71sabVXNVJ/VyN+p1wRYyj3j99uNhW0=; b=EVXjABgZ3hi3x56ZUUJgxYztou/mAldbzN4CtQMxSsA0a0Ao2z4ay3JesZcmGCXRtM vJi2ydnOmPtxCK9BniAwu/+QEei4DNVhEHMyrigdMHyN0oII5Y6Xe/WZFyXVwlexfWT5 HIOXwW5uzm+R4d5FcAUr1r07YviqyVHJllM8w= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; b=GUEHQGBsuvAdPcc2OwCSCTYWDjrMnOjlPwtLfVgYVrZitKpSu7am9G+S2TwFu/uptY 2Hx2CY4nmtly1hhinZfRJnTuuQMSFw/rfMbHZUsgUf364tHWXaP3CDSoJGj77rtNxTs1 W9LXuLXhlKB2mOvoS6xd1+LgqgNnkx6EH1tP8= Received: by 10.42.115.133 with SMTP id k5mr1903938icq.181.1300369032321; Thu, 17 Mar 2011 06:37:12 -0700 (PDT) MIME-Version: 1.0 Received: by 10.231.36.198 with HTTP; Thu, 17 Mar 2011 06:36:52 -0700 (PDT) In-Reply-To: References: <1300185984444-2681163.post@n3.nabble.com> <4d801aa4.d4aae60a.5b61.19b0@mx.google.com> From: Ian Lea Date: Thu, 17 Mar 2011 13:36:52 +0000 Message-ID: Subject: Re: Re: How to do an all field search without using a "catchall" fieldor "MultiFieldQueryParser" ? To: java-user@lucene.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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 wrote: > On Thu, Mar 17, 2011 at 5:40 PM, Ian Lea [via Lucene] < > ml-node+2693169-1481141743-376162@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. =A0There 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 versi= on. >> >> >> > 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 > > > > > -- > Regards > Shrinath.M > > > -- > View this message in context: http://lucene.472066.n3.nabble.com/How-to-d= o-an-all-field-search-without-using-a-catchall-field-or-MultiFieldQueryPars= er-tp2681163p2693226.html > Sent from the Lucene - Java Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org