无法理解Boost函数solr查询



我是Solr的新手,并试图了解Boost函数的工作方式。

以下在现有查询中 -

    http://solr_slave_2/solr/datCore/select?indent=on&q=qq=live+scores:+england+vs+new+zealand+champions+trophy&q={!boost+b%3D$dateboost+v%3D$qq+defType%3Ddismax}&dateboost=recip(ms(NOW/DATE,createdDate),3.16e-8,1,1)&defType=dismax&qf=title+subject&fq=(filetype:text)&start=0&rows=20&fl=title,subject,createdDate,score

查找以上查询的结果集 -

  <doc>
  <str name="subject">
  Get live cricket score & live commentary of 3rd wamp-up match between India vs New Zealand on Times of India.
  </str>
  <str name="title">Champions Trophy, warm-up: India v New Zealand</str>
  <date name="createdDate">2017-05-28T09:33:51Z</date>
  <float name="score">39.4114</float>
  </doc>
  <doc>
  <str name="subject">
  Get all the live updates from Match 6 of the Champions Trophy between England and New Zealand.
  </str>
  <str name="title">Champions Trophy Live: England v New Zealand</str>
  <date name="createdDate">2017-06-06T08:56:29Z</date>
  <float name="score">37.291893</float>
  </doc>

任何人都可以帮助我了解上述分数如何计算?

是在字段中匹配的最大单词数吗?还是单个单词的频率用于计算得分?还是其他?

请指南。

谢谢,

vibhav

p.s-如果有人选择删除这个问题,请在评论中提及原因,以便我可以在此问题中提高详细信息。

而无需访问您的SOLR实例,就无法弄清楚您的分数是如何计算的,因为这取决于许多因素(匹配,术语,字段,频率等(。我的建议只需将debugQuery=true添加到您的查询中,然后检查您将获得的调试输出(另一个部分(,其中包含您的查询如何转换以及如何计算得分,请准备好,因为输出非常冗长。

我强烈建议您使用http://splainer.io/是对分数的计算方式的非常有用的表示,哪些是影响您评分的更重要的因素。

最新更新