Return-Path: Delivered-To: apmail-jakarta-lucene-dev-archive@www.apache.org Received: (qmail 59324 invoked from network); 8 Feb 2005 15:07:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 8 Feb 2005 15:07:21 -0000 Received: (qmail 12224 invoked by uid 500); 8 Feb 2005 15:07:19 -0000 Delivered-To: apmail-jakarta-lucene-dev-archive@jakarta.apache.org Received: (qmail 12183 invoked by uid 500); 8 Feb 2005 15:07:18 -0000 Mailing-List: contact lucene-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Lucene Developers List" Reply-To: "Lucene Developers List" Delivered-To: mailing list lucene-dev@jakarta.apache.org Received: (qmail 12162 invoked by uid 99); 8 Feb 2005 15:07:18 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of appler@gmail.com designates 64.233.170.202 as permitted sender) Received: from rproxy.gmail.com (HELO rproxy.gmail.com) (64.233.170.202) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 08 Feb 2005 07:07:17 -0800 Received: by rproxy.gmail.com with SMTP id z35so898448rne for ; Tue, 08 Feb 2005 07:07:14 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding; b=dfJgu7xuDJhcIHK0PAdyl/fMY+7ybQs9u+sOjc9dCrOkFmDNMyqvmiGucehLSwkcWBP4HfCSWbcah+rzrRKmAXJSMcsTHv04h6Y3GyCGSXl1CZGfHhPjA7Pv2d7toPYxcLCDuk9EVhCUVjPzDo2c7z0tlJRSAv6pFGFHdueoEes= Received: by 10.38.92.44 with SMTP id p44mr128496rnb; Tue, 08 Feb 2005 07:07:14 -0800 (PST) Received: by 10.38.163.72 with HTTP; Tue, 8 Feb 2005 07:07:14 -0800 (PST) Message-ID: <48b70849050208070776561587@mail.gmail.com> Date: Wed, 9 Feb 2005 00:07:14 +0900 From: Cheolgoo Kang Reply-To: Cheolgoo Kang To: lucene-dev@jakarta.apache.org Subject: Weird BooleanQuery behavior Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi all, I'm getting some weird results using BooleanQuery. Let's see an example. Here's a simple OR-connected query. T:files T:deleting C:thanks C:exists The query above hits 1 document. But following *same* query only with parenthesis results nothing. (T:files T:deleting) (C:thanks C:exists) Another combinations of MUST and SHOULD. "T:files T:deleting +C:production +C:optimize" hits 1 document. "(T:files T:deleting) (+C:production +C:optimize)" hits 1 document. Isn't it weird? Is it an expected behavior? -- Cheolgoo, Kang --------------------------------------------------------------------- To unsubscribe, e-mail: lucene-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: lucene-dev-help@jakarta.apache.org