From java-dev-return-25890-apmail-lucene-java-dev-archive=lucene.apache.org@lucene.apache.org Fri Jun 06 18:15:10 2008 Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 94064 invoked from network); 6 Jun 2008 18:15:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Jun 2008 18:15:10 -0000 Received: (qmail 55231 invoked by uid 500); 6 Jun 2008 18:15:11 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 54959 invoked by uid 500); 6 Jun 2008 18:15:10 -0000 Mailing-List: contact java-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@lucene.apache.org Delivered-To: mailing list java-dev@lucene.apache.org Received: (qmail 54950 invoked by uid 99); 6 Jun 2008 18:15:10 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Jun 2008 11:15:10 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Jun 2008 18:14:27 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 084AF234C133 for ; Fri, 6 Jun 2008 11:14:45 -0700 (PDT) Message-ID: <1460802424.1212776085032.JavaMail.jira@brutus> Date: Fri, 6 Jun 2008 11:14:45 -0700 (PDT) From: "steve halsey (JIRA)" To: java-dev@lucene.apache.org Subject: [jira] Updated: (LUCENE-1300) Negative wildcard searches on MultiSearcher not eliminating correctly. In-Reply-To: <936371661.1212774345346.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/LUCENE-1300?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] steve halsey updated LUCENE-1300: --------------------------------- Affects Version/s: 2.1 2.3 > Negative wildcard searches on MultiSearcher not eliminating correctly. > ---------------------------------------------------------------------- > > Key: LUCENE-1300 > URL: https://issues.apache.org/jira/browse/LUCENE-1300 > Project: Lucene - Java > Issue Type: Bug > Components: Search > Affects Versions: 2.1, 2.3, 2.3.1 > Environment: Windows XP, cygwin. > Reporter: steve halsey > Priority: Minor > Attachments: TestMultiSearcherNegativeWildcardQueryExpansion.java, TestMultiSearcherNegativeWildcardQueryExpansionWorksWith151.java > > > If you do a search for a negative wildcard query on a MultiSearcher where one of the searchers is empty e.g. "lucene -bug*" the hits returned incorrectly include articles with words that should be eliminated, e.g. "bug" and "bugs". This is because the query expansion is done on the index with docs in and the empty ndex *separately* and then combined as an OR to be run on the MultiSearcher. This incorrectly lets in docs that have the excluded wildcard terms, e.g. "bug" nd bugs". This bug would also show up with two indexes full of docs, and I can send a test to show that if required, but I think this test demonstrates the bug in the implest way. > The attached class TestMultiSearcherNegativeWildcardQueryExpansion.java can be put in with other tests in org.apache.lucene.search and run and will fail, showing the bug exists. > I have tested this bug with the currently unreleased 2.3.2 and the released 2.1 and 2.3.1 and it fails on all. > With lucene-1.5-rc1 it passes (with mods to make it work with old API) see TestMultiSearcherNegativeWildcardQueryExpansionWorksWith151.java attachment. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org For additional commands, e-mail: java-dev-help@lucene.apache.org