Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 98879 invoked from network); 5 Aug 2008 23:35:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Aug 2008 23:35:38 -0000 Received: (qmail 4475 invoked by uid 500); 5 Aug 2008 23:35:36 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 4435 invoked by uid 500); 5 Aug 2008 23:35:36 -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 4420 invoked by uid 99); 5 Aug 2008 23:35:35 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Aug 2008 16:35:35 -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; Tue, 05 Aug 2008 23:34:48 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 070A9234C189 for ; Tue, 5 Aug 2008 16:34:46 -0700 (PDT) Message-ID: <1095209685.1217979286013.JavaMail.jira@brutus> Date: Tue, 5 Aug 2008 16:34:46 -0700 (PDT) From: "Michael Busch (JIRA)" To: java-dev@lucene.apache.org Subject: [jira] Closed: (LUCENE-954) Toggle score normalization in Hits In-Reply-To: <18510181.1183999984502.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/LUCENE-954?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:all-tabpanel ] Michael Busch closed LUCENE-954. -------------------------------- Resolution: Won't Fix Lucene Fields: [New, Patch Available] (was: [Patch Available, New]) Hits is deprecated. > Toggle score normalization in Hits > ---------------------------------- > > Key: LUCENE-954 > URL: https://issues.apache.org/jira/browse/LUCENE-954 > Project: Lucene - Java > Issue Type: Improvement > Components: Search > Affects Versions: 2.2, 2.3, 2.3.1, 2.4 > Environment: any > Reporter: Christian Kohlsch=C3=BCtter > Assignee: Otis Gospodnetic > Fix For: 2.4 > > Attachments: hits-scoreNorm.patch, LUCENE-954.patch > > > The current implementation of the "Hits" class sometimes performs score n= ormalization. > In particular, whenever the top-ranked score is bigger than 1.0, it is no= rmalized to a maximum of 1.0. > In this case, Hits may return different score results than TopDocs-based = methods. > In my scenario (a federated search system), Hits delievered just plain wr= ong results. > I was merging results from several sources, all having homogeneous statis= tics (similar to MultiSearcher, but over the Internet using HTTP/XML-based = protocols). > Sometimes, some of the sources had a top-score greater than 1, so I ended= up with garbled results. > I suggest to add a switch to enable/disable this score-normalization at r= untime. > My patch (attached) has an additional peformance benefit, since score nor= malization now occurs only when Hits#score() is called, not when creating t= he Hits result list. Whenever scores are not required, you save one multipl= ication per retrieved hit (i.e., at least 100 multiplications with the curr= ent implementation of Hits). --=20 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