lucene打分规则

0.17677669 = (MATCH) fieldWeight(title_analyze:火锅 in 0), product of:
  1.4142135 = tf(termFreq(title_analyze:火锅)=2)
  1.0 = idf(docFreq=2, maxDocs=3)
  0.125 = fieldNorm(field=title_analyze, doc=0)

score=tf*idf*fieldNorm

  • tf=根号termFreq;如1.4142135 = tf(termFreq=2),1 = tf(termFreq=1)
  • idf=log(maxdoc/(docFreq+1))+1;该项最小值=log(3/4)+1=0.71231794
  • fieldNorm = fieldboost / sqrt(fieldlength);
posted @ 2011-06-28 10:50  iaac  阅读(244)  评论(0编辑  收藏  举报