Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 81400 invoked from network); 7 Dec 2006 01:39:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 Dec 2006 01:39:29 -0000 Received: (qmail 67021 invoked by uid 500); 7 Dec 2006 01:39:20 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 66975 invoked by uid 500); 7 Dec 2006 01:39:19 -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 66953 invoked by uid 99); 7 Dec 2006 01:39:17 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Dec 2006 17:39:16 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: local policy) Received: from [128.218.33.11] (HELO gossamer.ckm.ucsf.edu) (128.218.33.11) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Dec 2006 17:38:28 -0800 Received: from CKMPC08 (tikal.library.ucsf.edu [128.218.15.151]) by gossamer.ckm.ucsf.edu (8.13.8/8.13.8) with ESMTP id kB71bVVQ029881 for ; Wed, 6 Dec 2006 17:37:34 -0800 (PST) From: "Renaud Waldura" To: Subject: RE: BooleanQuery Date: Wed, 6 Dec 2006 17:37:26 -0800 Message-ID: <002201c719a0$43620eb0$970fda80@libraria.ucsf.edu> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <359a92830612061155l1b51e426m6b6be77657243d68@mail.gmail.com> Thread-Index: AccZcI8Hs60ZiFBhSn6Ewnwlt5DxTgALzm5Q X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2962 X-Virus-Checked: Checked by ClamAV on apache.org Read my own complaints about QueryParser here: http://marc.theaimsgroup.com/?l=lucene-user&m=116069469827270&w=2 You're in for a surprise. As alluded by Erick, the stock QP doesn't quite do what one (legitimately IMO) expects. --Renaud -----Original Message----- From: Erick Erickson [mailto:erickerickson@gmail.com] Sent: Wednesday, December 06, 2006 11:56 AM To: java-user@lucene.apache.org Subject: Re: BooleanQuery These are not boolean operators, which is often confusing. See the thread "*Another problem with the QueryParser*" for an exposition by Chris about how these operate. This may change what you expect to come back from the parser... If it doesn't, then maybe someone else can chime in ... Erick On 12/6/06, Marcelo Ohashi wrote: > > Hi, > > Does anyone know if lucene can handle complex boolean queries > like the following ones? > > 1. T: (A OR NOT B) > 2. (T:A AND NOT T:B) OR NOT T:C > > Cause I figured out in some tests that the results were not > really what I expected. > > Thanks in advance, > > _____________ > Marcelo Ohashi > > > > --------------------------------------------------------------------- > 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