Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 56579 invoked from network); 26 Jul 2006 22:08:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 26 Jul 2006 22:08:29 -0000 Received: (qmail 11205 invoked by uid 500); 26 Jul 2006 22:08:24 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 10819 invoked by uid 500); 26 Jul 2006 22:08:24 -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 10808 invoked by uid 99); 26 Jul 2006 22:08:23 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Jul 2006 15:08:23 -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.154 as permitted sender) Received: from [195.212.29.154] (HELO mtagate5.de.ibm.com) (195.212.29.154) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Jul 2006 15:08:22 -0700 Received: from d12nrmr1607.megacenter.de.ibm.com (d12nrmr1607.megacenter.de.ibm.com [9.149.167.49]) by mtagate5.de.ibm.com (8.13.7/8.13.7) with ESMTP id k6QM80lB150266 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Wed, 26 Jul 2006 22:08:00 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 k6QMBIEl138490 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 27 Jul 2006 00:11:18 +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 k6QM7xKq002580 for ; Thu, 27 Jul 2006 00:07: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 k6QM7x15002577 for ; Thu, 27 Jul 2006 00:07:59 +0200 In-Reply-To: <44C70783.6060305@nuix.com.au> Subject: Re: MultiFieldQueryParser.parse deprecated. What can I use? To: java-user@lucene.apache.org X-Mailer: Lotus Notes Release 7.0 HF144 February 01, 2006 Message-ID: From: Doron Cohen Date: Wed, 26 Jul 2006 15:07:52 -0700 X-MIMETrack: Serialize by Router on D12MC102/12/M/IBM(Release 7.0.1HF269 | June 22, 2006) at 27/07/2006 01:11:17 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 By the resulted query toString(), boolean query would not work correctly: qtxt: a foo [1] Multi Field Query (OR) : (title:a body:a) (title:foo body:foo) [2] Multi Field Query (AND): +(title:a body:a) +(title:foo body:foo) [3] Boolean Query : (title:a title:foo) (body:a body:foo) --> By a chance, all are equivalent, returning doc1. qtxt: a -foo [1] Multi Field Query (OR) : (title:a body:a) -(title:foo body:foo) [2] Multi Field Query (AND): +(title:a body:a) -(title:foo body:foo) [3] Boolean Query : (title:a -title:foo) (body:a -body:foo) --> Here [1,2] "correctly" return no docs, but [3] returns doc1. qtxt: +a +foo [1] Multi Field Query (OR) : +(title:a body:a) +(title:foo body:foo) [2] Multi Field Query (AND): +(title:a body:a) +(title:foo body:foo) [3] Boolean Query : (+title:a +title:foo) (+body:a +body:foo) --> Now [1,2] "correctly" return doc1, but [3] returns no docs. qtxt: a +foo [1] Multi Field Query (OR) : (title:a body:a) +(title:foo body:foo) [2] Multi Field Query (AND): +(title:a body:a) +(title:foo body:foo) [3] Boolean Query : (title:a +title:foo) (body:a +body:foo) --> All "correctly" return doc1. - Doron Daniel Noll wrote on 25/07/2006 23:11:15: > Marvin Humphrey wrote: > > I believe that this will cause difficulties with prohibited terms. Say > > you have these two documents... > > > > Doc 1: > > title: a > > body: foo > > Doc 2: > > title: b > > body: bar > > It's not just prohibited terms. Happens for required terms too. A > search for "a AND foo" would return no hits there even though it's a hit. > > Daniel > > > -- > Daniel Noll > > Nuix Pty Ltd > Suite 79, 89 Jones St, Ultimo NSW 2007, Australia Ph: +61 2 9280 0699 > Web: http://www.nuix.com.au/ Fax: +61 2 9212 6902 > > This message is intended only for the named recipient. If you are not > the intended recipient you are notified that disclosing, copying, > distributing or taking any action in reliance on the contents of this > message or attachment is strictly prohibited. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org > For additional commands, e-mail: java-user-help@lucene.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org