Return-Path: Delivered-To: apmail-jakarta-lucene-dev-archive@www.apache.org Received: (qmail 65665 invoked from network); 23 Oct 2004 14:24:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 23 Oct 2004 14:24:00 -0000 Received: (qmail 20064 invoked by uid 500); 23 Oct 2004 14:23:58 -0000 Delivered-To: apmail-jakarta-lucene-dev-archive@jakarta.apache.org Received: (qmail 20011 invoked by uid 500); 23 Oct 2004 14:23:57 -0000 Mailing-List: contact lucene-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Lucene Developers List" Reply-To: "Lucene Developers List" Delivered-To: mailing list lucene-dev@jakarta.apache.org Received: (qmail 19998 invoked by uid 99); 23 Oct 2004 14:23:57 -0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from [212.227.126.189] (HELO moutng.kundenserver.de) (212.227.126.189) by apache.org (qpsmtpd/0.28) with ESMTP; Sat, 23 Oct 2004 07:23:56 -0700 Received: from [212.227.126.207] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 1CLMoE-0001BA-00 for lucene-dev@jakarta.apache.org; Sat, 23 Oct 2004 16:23:54 +0200 Received: from [62.245.208.201] (helo=[192.168.10.117]) by mrelayng.kundenserver.de with asmtp (TLSv1:RC4-MD5:128) (Exim 3.35 #1) id 1CLMoE-0007J3-00 for lucene-dev@jakarta.apache.org; Sat, 23 Oct 2004 16:23:54 +0200 Message-ID: <417A69A6.5000305@detego-software.de> Date: Sat, 23 Oct 2004 16:24:38 +0200 From: Christoph Goller User-Agent: Mozilla/5.0 (X11; U; Linux i686; de-AT; rv:1.7.3) Gecko/20040914 X-Accept-Language: de, en-us, en, de-at MIME-Version: 1.0 To: Lucene Developers List Subject: Re: Two formal questions References: <20041019203404.40552.qmail@web12708.mail.yahoo.com> <4177F4E5.9080100@detego-software.de> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: kundenserver.de abuse@kundenserver.de auth:12f525e90d51bb735119ab4626f6800d X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Erik Hatcher schrieb: > On Oct 21, 2004, at 1:41 PM, Christoph Goller wrote: > >> Furthermore concerning Lucene 1.4.3: >> Erik, before making the new release, I would feel better if >> you could check whether your query-parser works with the current >> branch 1.4.3. > > > The added back methods all are working fine in my tests (using CVS > HEAD). Thanks! > > However, one oddity now comes about in this test case, from Lucene in > Action: > > public void testGrouping() throws Exception { > Query query = QueryParser.parse( > "(agile OR extreme) AND methodology", > "subject", > analyzer); > Hits hits = searcher.search(query); > > System.out.println("hits.length() = " + hits.length()); > System.out.println("query = " + query); > > assertHitsIncludeTitle(hits, "Extreme Programming Explained"); > assertHitsIncludeTitle(hits, "The Pragmatic Programmer"); > } > > Here's the output: > > hits.length() = 1 > query = +(subject:agile subject:extreme) +subject:methodology > > Process finished with exit code -1 > > junit.framework.AssertionFailedError: title 'The Pragmatic Programmer' > not found > at lia.common.LiaTestCase.assertHitsIncludeTitle(LiaTestCase.java:54) > at lia.searching.QueryParserTest.testGrouping(QueryParserTest.java:57) > > This test previously passed. If I remove the word "extreme" from the > query, it passes. "The Pragmatic Programmer" does not have the term > "extreme" in its subject field. > > What am I missing? Query.toString looks fine. > > Something seems awry, but it could easily be me. Or it could be that > I'm using CVS HEAD and not the 1.4 branch? Thought I'd report it and > see what you thought. I have no idea. Does not seem related to queryparser since the resulting query looks like it should, doesn't it? Could you please try with the 1.4 branch. Anyway, the 1.4 branch and the CVS Head should behave identical except for deprecated warnings and maybe fuzzyQueries. Christoph --------------------------------------------------------------------- To unsubscribe, e-mail: lucene-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: lucene-dev-help@jakarta.apache.org