Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 7443 invoked from network); 10 Aug 2005 18:55:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 10 Aug 2005 18:55:46 -0000 Received: (qmail 79863 invoked by uid 500); 10 Aug 2005 18:55:44 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 79793 invoked by uid 500); 10 Aug 2005 18:55:43 -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 79780 invoked by uid 99); 10 Aug 2005 18:55:43 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Aug 2005 11:55:43 -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 [66.93.150.34] (HELO mail.dessci.com) (66.93.150.34) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Aug 2005 11:56:05 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: Hit Score Date: Wed, 10 Aug 2005 11:57:36 -0700 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Hit Score thread-index: AcWd00vpZVbDjpODTLKxm2kRSOhfjQACZNWA From: "Rajesh Munavalli" To: X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi Erik, This is what I see in explaination... * 0.30685282 =3D fieldWeight(contents:test in 0), product of: o 1.0 =3D tf(termFreq(contents:test)=3D1) o 0.30685282 =3D idf(docFreq=3D1) o 1.0 =3D fieldNorm(field=3Dmrow, doc=3D0)=20 I try to reason why the idf is 0.30685282 but couldn't really figure out why. Is this the expected value for IDF? Thanks, Rajesh Munavalli -----Original Message----- From: Erik Hatcher [mailto:erik@ehatchersolutions.com]=20 Sent: Wednesday, August 10, 2005 12:42 PM To: java-dev@lucene.apache.org Subject: Re: Hit Score On Aug 10, 2005, at 11:51 AM, Rajesh Munavalli wrote: > I indexed a single document containing only one word. When I search=20 > for the same word I get a hit score of "0.3". Shouldn't I be getting=20 > "1.0"? Try out IndexSearcher.explain() to see why. There are numerous =20 factors involved. Erik --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org For additional commands, e-mail: java-dev-help@lucene.apache.org