Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 29721 invoked from network); 4 Aug 2006 20:18:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 4 Aug 2006 20:18:24 -0000 Received: (qmail 97884 invoked by uid 500); 4 Aug 2006 20:18:18 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 97847 invoked by uid 500); 4 Aug 2006 20:18:18 -0000 Mailing-List: contact java-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-user@lucene.apache.org Delivered-To: mailing list java-user@lucene.apache.org Received: (qmail 97830 invoked by uid 99); 4 Aug 2006 20:18:17 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Aug 2006 13:18:17 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [128.220.2.151] (HELO ipex4.johnshopkins.edu) (128.220.2.151) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Aug 2006 13:18:17 -0700 Received: from atis9nn0d91.monument1.jhmi.edu (HELO ATIS9NN0D91) ([162.129.49.150]) by ipex4.johnshopkins.edu with SMTP; 04 Aug 2006 16:17:45 -0400 X-BrightmailFiltered: true X-Brightmail-Tracker: AAAAAA== X-IronPort-AV: i="4.07,212,1151899200"; d="scan'208"; a="177366573:sNHT1227989676" Message-ID: <00fe01c6b803$0b3911e0$963181a2@win.ad.jhu.edu> Reply-To: "Zhao, Xin" From: "Zhao, Xin" To: References: <1bb901c6b662$03e2e710$963181a2@win.ad.jhu.edu> <7554877E-2CBE-4E35-9B30-E53BFA32BAF6@ehatchersolutions.com> Subject: Re: scoring formula Date: Fri, 4 Aug 2006 16:17:43 -0400 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="UTF-8"; reply-type=response Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2869 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi, Erik, What do you think about the difference? Thank you very much for your reply, Xin ----- Original Message ----- From: "Erik Hatcher" To: Sent: Wednesday, August 02, 2006 3:56 PM Subject: Re: scoring formula Please disregard my previous quick reply as I did not fully read your message before replying. *ugh* Erik On Aug 2, 2006, at 2:32 PM, Zhao, Xin wrote: > Hi, > I noticed the scoring formula in the errata of book "Lucene in Action" is > a little different from the one in Javadoc. I enclosed the one in Javadoc > at the end of email. getBoost(t in q) is in Javadoc's formula (which I > assume is the correct one), but not in "lucene in action". Any idea? We > need to re-implement the scoring in our application. What I understand is > for each term in query, we should multiply the indexing boost( the boost > manfully added while indexing) with the query boost, and with term > frequency, lengthnorm, idf. So the formula in Javadoc makes more sense to > me. Please correct me if I am wrong. Totally new to Lucene. > Appreciate your help, > > Xin > > ************************************************************* > > score(q,d) = > Σ ( tf(t in d) * idf(t)^2 * getBoost(t in q) * getBoost (t.field in > d) * lengthNorm(t.field in d) ) * coord(q,d) * > queryNorm(sumOfSqaredWeights) > t in q > > ************************************************************ --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org