Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 89506 invoked from network); 30 Nov 2010 06:20:20 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 30 Nov 2010 06:20:20 -0000 Received: (qmail 52953 invoked by uid 500); 30 Nov 2010 06:20:18 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 52620 invoked by uid 500); 30 Nov 2010 06:20:18 -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 52612 invoked by uid 99); 30 Nov 2010 06:20:17 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Nov 2010 06:20:17 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of hossman_lucene@fucit.org designates 208.69.42.181 as permitted sender) Received: from [208.69.42.181] (HELO radix.cryptio.net) (208.69.42.181) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Nov 2010 06:20:09 +0000 Received: by radix.cryptio.net (Postfix, from userid 1007) id E1E5D71C205; Mon, 29 Nov 2010 22:19:46 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by radix.cryptio.net (Postfix) with ESMTP id 8A90871C1CA for ; Mon, 29 Nov 2010 22:19:46 -0800 (PST) Date: Mon, 29 Nov 2010 22:19:46 -0800 (PST) From: Chris Hostetter To: java-user@lucene.apache.org Subject: Re: What is the difference between the "AND" and "+" operator? In-Reply-To: Message-ID: References: User-Agent: Alpine 1.10 (DEB 962 2008-03-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Checked: Checked by ClamAV on apache.org : Subject: What is the difference between the "AND" and "+" operator? In this query, "y" is mandatory, but documents that also match "x" will score higher then documents that only match "y"... x +y In both of these queries, "x" and "y" are both mandatory; a document only matching one of them will not match the query... +x +y x AND y -Hoss --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org