1. lucene 评分公式
)
Lucene Scoring 评分机制:
http://blog.chenlb.com/2009/08/lucene-scoring-architecture.html
3. dismax/edismax评分公式
3.1 dismax介绍:
<requestHandler name="search" class="solr.SearchHandler" default="true">
<lst name="defaults">
<str name="defType">edismax</str> <!--增加这一行-->
</lst>
</requesHandler>
3.2 solr使用edismax时的评分公式
下面借用用python的对齐方式来展示计算规则:
score = max plus 0.1 times others of:
value1 = field1 weight,product of:
queryWeight, product of:
boost
idf
queryNorm
fieldWeight, product of:
tf(termFreq)
idf
fieldNorm
...
valuen = fieldn weight(计算方法同上)
其中field weight时lucene的评分公式计算出来的,可以看出跟lucene用explain query显示的格式一样。
4.评分相关的Solr FAQ
以上内容是基于当前solr4.4版本的~