Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 52122 invoked from network); 26 Apr 2005 03:24:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 26 Apr 2005 03:24:55 -0000 Received: (qmail 21542 invoked by uid 500); 26 Apr 2005 03:25:25 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 21449 invoked by uid 500); 26 Apr 2005 03:25:24 -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 21434 invoked by uid 99); 26 Apr 2005 03:25:24 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from dev.allthingslocal.com (HELO dev.allthingslocal.com) (69.44.58.51) by apache.org (qpsmtpd/0.28) with ESMTP; Mon, 25 Apr 2005 20:25:24 -0700 Received: from [192.168.1.106] ([::ffff:66.92.12.207]) (AUTH: LOGIN chuck, TLS: TLSv1/SSLv3,256bits,AES256-SHA) by dev.allthingslocal.com with esmtp; Mon, 25 Apr 2005 22:24:48 -0500 id 0007420E.426DB480.00004453 Message-ID: <426DB487.1080605@allthingslocal.com> Date: Mon, 25 Apr 2005 20:24:55 -0700 From: Chuck Williams Organization: All Things Local User-Agent: Debian Thunderbird 1.0 (X11/20050116) X-Accept-Language: en-us, en MIME-Version: 1.0 To: java-dev@lucene.apache.org Subject: Re: SortTest failing References: <20050426025549.47791.qmail@web31101.mail.mud.yahoo.com> In-Reply-To: <20050426025549.47791.qmail@web31101.mail.mud.yahoo.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Otis Gospodnetic wrote: >Hm, Erik is not alone with unit tests failing. My HighlighterTest >passes (I didn't do svn update today yet), but I see SortTest failing: > > [junit] Testcase: >testNormalizedScores(org.apache.lucene.search.TestSort): FAILED > [junit] expected:<0.375> but was:<0.392445> > [junit] junit.framework.AssertionFailedError: expected:<0.375> but >was:<0.392445> > [junit] at >org.apache.lucene.search.TestSort.assertSameValues(TestSort.java:560) > [junit] at >org.apache.lucene.search.TestSort.testNormalizedScores(TestSort.java:365) > > >Line 365 is this: > >assertSameValues (scoresA, getScores(multi.search(queryA,sort))); > > >And this makes me think that this broke during my last commit of Wolf's >patch for MultiSearcher and docFreq stuff. However I did run 'ant >test' before commit and did see BUILD SUCCESSFUL, so I'm not 100% sure. > > >Anyone else seeing this error? > > Otis, I think that is a bug in the test case that Wolf's patch has exposed. It creates an index consisting of two copies of "full". This should be equivalent to an index where every document is duplicated (occurs twice), not to an index where each document occurs only once. With the new correct idf normalizaiton, this increases all the docfreq's for the terms, which changes the score. Scores on the duplicated index should not be the same as scores on the unduplicated index. Chuck --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org For additional commands, e-mail: java-dev-help@lucene.apache.org