Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 15825 invoked from network); 22 Jan 2007 21:29:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 22 Jan 2007 21:29:56 -0000 Received: (qmail 54051 invoked by uid 500); 22 Jan 2007 21:29:56 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 54025 invoked by uid 500); 22 Jan 2007 21:29:56 -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 54013 invoked by uid 99); 22 Jan 2007 21:29:55 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Jan 2007 13:29:55 -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 [169.229.70.167] (HELO rescomp.berkeley.edu) (169.229.70.167) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Jan 2007 13:29:47 -0800 Received: by rescomp.berkeley.edu (Postfix, from userid 1007) id 9E2BF5B764; Mon, 22 Jan 2007 13:29:26 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by rescomp.berkeley.edu (Postfix) with ESMTP id 970887F403 for ; Mon, 22 Jan 2007 13:29:26 -0800 (PST) Date: Mon, 22 Jan 2007 13:29:26 -0800 (PST) From: Chris Hostetter To: java-user@lucene.apache.org Subject: Re: Technology Preview of new Lucene QueryParser In-Reply-To: <45B2D976.8040707@gmail.com> Message-ID: References: <45A460E2.8090508@gmail.com> <45A5A468.1030604@gmail.com> <45A626DA.3080008@gmail.com> <45B25A64.405@gmail.com> <45B2D976.8040707@gmail.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Checked: Checked by ClamAV on apache.org : With my syntax you can get real precedence that mixes with how no : precedence (Lucene's unary operators) works. No precedence is created by : allowing you to make any operator resolve first...any operator that : resolves first connected with another operator that resolves first will : behave as if neither has precedence over the other and generate a single : BooleanQuery. what i was trying to get at is that i don't think precedence is really the issue -- it's the lack of unary operators. If the only way to get a single BooleanQuery is to use operators that have the exact same precedence, and all operators are binary, then how to you create the equivilent of QueryParser "+a b c -d -e" ? ... if i remember your syntax correctly the only way to match the same documents is... "a & ( b | c ) ! d ! e" ...but it won't score the same way because the parens force a nested boolean query to be created. -Hoss --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org