lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rajesh Munavalli" <raje...@dessci.com>
Subject RE: Hit Score
Date Wed, 10 Aug 2005 18:57:36 GMT
Hi Erik,
         This is what I see in explaination...

* 0.30685282 = fieldWeight(contents:test in 0), product of:
          o 1.0 = tf(termFreq(contents:test)=1)
          o 0.30685282 = idf(docFreq=1)
          o 1.0 = fieldNorm(field=mrow, doc=0) 

          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] 
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 
> for the same word I get a hit score of "0.3". Shouldn't I be getting 
> "1.0"?

Try out IndexSearcher.explain() to see why.   There are numerous  
factors involved.

     Erik

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Mime
View raw message