boost(index) is the index-time boost, the optional boost that you can specify when adding a document to the index, such as:

<add>
 <doc boost="2.5">
   <field name="employeeId">05991</field>
   <field name="office" boost="2.0">Bridgewater</field>
 </doc>
</add>

The index-time boost is multiplied by the length normalization factor which gives a higher score for shorter documents.

Note that fieldNorm(lenghNorm *boost(index)) is reduced from a float to a SINGLE BYTE, so it can be tricky to work with.

For gory details, see:
http://lucene.apache.org/core/4_0_0/core/org/apache/lucene/search/similarities/TFIDFSimilarity.html

-- Jack Krupansky

-----Original Message----- From: Sangeetha
Sent: Friday, December 14, 2012 1:36 AM
To: solr-user@lucene.apache.org
Subject: Re: score calculation

Using Toms reply i have got most of the terms,

The following is my understanding of a single doc score,

5.528805 = (MATCH) sum of:  (sum of scores = 0.08775589 + 5.441049)

0.08775589 = (MATCH) weight(text:sachin in 286) [DefaultSimilarity], result
of:

0.08775589 = score(doc=286,freq=2.0 = termFreq=2.0 ), product of: * (
fieldweight*queryweight)*

0.06781097 = queryWeight, product of:

5.856543 = idf(docFreq=18, maxDocs=2443)

0.011578668 = queryNorm  - not used for scoring

1.2941253 = fieldWeight in 286, product of:  ( tf*idf*fieldNorm)

1.4142135 = tf(freq=2.0), with freq of: 2.0 = termFreq=2.0

5.856543 = idf(docFreq=18, maxDocs=2443)

0.15625 = fieldNorm(doc=286)

5.441049 = (MATCH) weight(type_s:video^10.0 in 286) [DefaultSimilarity],
result of:

5.441049 = score(doc=286,freq=1.0 = termFreq=1.0 ), product of:  (
fieldweight*queryweight)

0.793726 = queryWeight, product of:

10.0 = boost

6.855072 = idf(docFreq=6, maxDocs=2443)

0.011578668 = queryNorm

6.855072 = fieldWeight in 286, product of: ( tf*idf*fieldNorm)

1.0 = tf(freq=1.0), with freq of: 1.0 = termFreq=1.0
6.855072 = idf(docFreq=6, maxDocs=2443)
 1.0 = fieldNorm(doc=286)


But still i am not clear of fieldNorm(lenghNorm *boost(index) - how to get
boost(index)

and how queryWeight is calculated


Thanks,
Sangeetha




--
View this message in context: http://lucene.472066.n3.nabble.com/score-calculation-tp4026669p4026946.html Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to