Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 30895 invoked from network); 4 Apr 2006 10:34:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 4 Apr 2006 10:34:16 -0000 Received: (qmail 69688 invoked by uid 500); 4 Apr 2006 10:34:06 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 69604 invoked by uid 500); 4 Apr 2006 10:34:06 -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 69442 invoked by uid 99); 4 Apr 2006 10:34:05 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Apr 2006 03:34:05 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Apr 2006 03:34:04 -0700 Received: from ajax (localhost.localdomain [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id D72226ACAA for ; Tue, 4 Apr 2006 11:33:43 +0100 (BST) Message-ID: <1946581817.1144146823878.JavaMail.jira@ajax> Date: Tue, 4 Apr 2006 11:33:43 +0100 (BST) From: "Helen Warren (JIRA)" To: java-dev@lucene.apache.org Subject: [jira] Updated: (LUCENE-538) Using WildcardQuery with MultiSearcher, and Boolean MUST_NOT clause In-Reply-To: <1437044259.1144146823398.JavaMail.jira@ajax> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/LUCENE-538?page=all ] Helen Warren updated LUCENE-538: -------------------------------- Attachment: TestMultiSearchWildCard.java Suite of Junit tests illustrating the problem described in this issue. > Using WildcardQuery with MultiSearcher, and Boolean MUST_NOT clause > ------------------------------------------------------------------- > > Key: LUCENE-538 > URL: http://issues.apache.org/jira/browse/LUCENE-538 > Project: Lucene - Java > Type: Bug > Components: Search > Versions: 1.9 > Environment: Ubuntu Linux, java version 1.5.0_04 > Reporter: Helen Warren > Attachments: TestMultiSearchWildCard.java > > We are searching across multiple indices using a MultiSearcher. There seems to be a problem when we use a WildcardQuery to exclude documents from the result set. I attach a set of unit tests illustrating the problem. > In these tests, we have two indices. Each index contains a set of documents with fields for 'title', 'section' and 'index'. The final aim is to do a keyword search, across both indices, on the title field and be able to exclude documents from certain sections (and their subsections) using a > WildcardQuery on the section field. > > e.g. return documents from both indices which have the string 'xyzpqr' in their title but which do not lie > in the news section or its subsections (section = /news/*). > > The first unit test (testExcludeSectionsWildCard) fails trying to do this. > If we relax any of the constraints made above, tests pass: > > * Don't use WildcardQuery, but pass in the news section and it's child section to exclude explicitly (testExcludeSectionsExplicit) > * Exclude results from just one section, not it's children too i.e. don't use WildcardQuery(testExcludeSingleSection) > * Do use WildcardQuery, and exclude a section and its children, but just use one index thereby using the simple > IndexReader and IndexSearcher objects (testExcludeSectionsOneIndex). > * Try the boolean MUST clause rather than MUST_NOT using the WildcardQuery i.e. only include results from the /news/ section > and its children. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org For additional commands, e-mail: java-dev-help@lucene.apache.org