Return-Path: X-Original-To: apmail-lucene-dev-archive@www.apache.org Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B002B7AA0 for ; Tue, 29 Nov 2011 22:10:05 +0000 (UTC) Received: (qmail 78913 invoked by uid 500); 29 Nov 2011 22:10:04 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 78835 invoked by uid 500); 29 Nov 2011 22:10:04 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 78828 invoked by uid 99); 29 Nov 2011 22:10:04 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Nov 2011 22:10:04 +0000 X-ASF-Spam-Status: No, hits=-2001.2 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Nov 2011 22:09:59 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id DB783A7684 for ; Tue, 29 Nov 2011 22:09:39 +0000 (UTC) Date: Tue, 29 Nov 2011 22:09:39 +0000 (UTC) From: "Uwe Schindler (Updated) (JIRA)" To: dev@lucene.apache.org Message-ID: <364778462.23467.1322604579900.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <207307385.22920.1322594500355.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (LUCENE-3609) BooleanFilter changed behavior in 3.5, no longer acts as if "minimum should match" set to 1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/LUCENE-3609?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Uwe Schindler updated LUCENE-3609: ---------------------------------- Attachment: LUCENE-3609.patch Path with testcase testing all special cases (all patches for 3.x) > BooleanFilter changed behavior in 3.5, no longer acts as if "minimum should match" set to 1 > ------------------------------------------------------------------------------------------- > > Key: LUCENE-3609 > URL: https://issues.apache.org/jira/browse/LUCENE-3609 > Project: Lucene - Java > Issue Type: Bug > Components: core/search > Affects Versions: 3.5 > Reporter: Shay Banon > Assignee: Uwe Schindler > Attachments: LUCENE-3609.patch, LUCENE-3609.patch, LUCENE-3609.patch > > > The change LUCENE-3446 causes a change in behavior in BooleanFilter. It used to work as if minimum should match clauses is 1 (compared to BQ lingo), but now, if no should clauses match, then the should clauses are ignored, and for example, if there is a must clause, only that one will be used and returned. > For example, a single must clause and should clause, with the should clause not matching anything, should not match anything, but, it will match whatever the must clause matches. > The fix is simple, after iterating over the should clauses, if the aggregated bitset is null, return null. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org