Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 8040 invoked from network); 25 Jul 2006 18:07:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 25 Jul 2006 18:07:30 -0000 Received: (qmail 70246 invoked by uid 500); 25 Jul 2006 18:07:23 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 70226 invoked by uid 500); 25 Jul 2006 18:07:23 -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 70208 invoked by uid 99); 25 Jul 2006 18:07:22 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Jul 2006 11:07:22 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of DORONC@il.ibm.com designates 195.212.29.150 as permitted sender) Received: from [195.212.29.150] (HELO mtagate1.de.ibm.com) (195.212.29.150) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Jul 2006 11:07:21 -0700 Received: from d12nrmr1607.megacenter.de.ibm.com (d12nrmr1607.megacenter.de.ibm.com [9.149.167.49]) by mtagate1.de.ibm.com (8.13.7/8.13.7) with ESMTP id k6PI6xQg077488 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Tue, 25 Jul 2006 18:06:59 GMT Received: from d12av02.megacenter.de.ibm.com (d12av02.megacenter.de.ibm.com [9.149.165.228]) by d12nrmr1607.megacenter.de.ibm.com (8.13.6/NCO/VER7.0) with ESMTP id k6PIAFBX148056 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 25 Jul 2006 20:10:15 +0200 Received: from d12av02.megacenter.de.ibm.com (loopback [127.0.0.1]) by d12av02.megacenter.de.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id k6PI6xDq022559 for ; Tue, 25 Jul 2006 20:06:59 +0200 Received: from d12mc102.megacenter.de.ibm.com (d12mc102.megacenter.de.ibm.com [9.149.167.114]) by d12av02.megacenter.de.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id k6PI6xMh022553 for ; Tue, 25 Jul 2006 20:06:59 +0200 In-Reply-To: Subject: Re: Grouping over multiple fields To: java-user@lucene.apache.org X-Mailer: Lotus Notes Release 7.0 HF144 February 01, 2006 Message-ID: From: Doron Cohen Date: Tue, 25 Jul 2006 11:06:48 -0700 X-MIMETrack: Serialize by Router on D12MC102/12/M/IBM(Release 7.0.1HF269 | June 22, 2006) at 25/07/2006 21:10:15 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N I think the problem might be in the part. At least with Lucene 2.0, parsing result is as expected - String qtxt = "some text AND ( AUTHOR_NAME:krish OR EMPLOYEE_NAME:krish )"; Query q = new QueryParser("field",new WhitespaceAnalyzer()).parse(qtxt); System.out.println(q); --> field:some +field:text +(AUTHOR_NAME:krish EMPLOYEE_NAME:krish) - Doron "Krishnendra Nandi" wrote on 25/07/2006 03:38:51: > Hi All, > > Can anybody help me out on this ..? > > I have to search for a particular value over multiple fields and need to > know if grouping is allowed over multiple fields > > eg. > > AND ( AUTHOR_NAME:krish OR EMPLOYEE_NAME:krish ) > > Introducing paranthesis "(" is giving me lexical error > > Thanks and Regards > Krishnendra Nandi > > The information contained in this e-mail and any accompanying documents > may contain information that is confidential or otherwise protected > from disclosure. If you are not the intended recipient of this message, > or if this message has been addressed to you in error, please > immediately alert the sender by reply e-mail and then delete this message, > including any attachments. Any dissemination, distribution or other use of > the contents of this message by anyone other than the intended recipient > is strictly prohibited. > --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org