Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/solr/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
无法理解boost函数solr查询_Boost_Solr_Solr Query Syntax - Fatal编程技术网

无法理解boost函数solr查询

无法理解boost函数solr查询,boost,solr,solr-query-syntax,Boost,Solr,Solr Query Syntax,我是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,createdDa

我是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>

获取《印度时报》上印度队对新西兰队第三场wamp up比赛的现场板球得分和现场解说。
冠军奖杯,热身赛:印度对新西兰
2017-05-28 09:33:51Z
39.4114
获取英格兰和新西兰之间冠军奖杯第6场比赛的所有实时更新。
冠军奖杯直播:英格兰对新西兰
2017-06-06T08:56:29Z
37.291893
有人能帮我了解一下以上分数是如何计算的吗

是否在字段中匹配的最大字数上?或者是用来计算分数的单个单词的频率?还是别的什么

请导游

谢谢

维巴夫


注-如果有人选择否决该问题,请务必在评论中提及原因,以便我可以改进该问题的细节。

如果没有访问Solr实例,则无法计算您的分数,因为它取决于许多因素(匹配、术语、字段、频率等)。我的建议是将
debugQuery=true
添加到查询中,并检查您将获得的调试输出(一个附加部分),其中包括如何转换查询以及如何计算分数,请做好准备,因为输出非常详细


我强烈建议您使用是一种非常有用的表示方式,可以表示分数是如何计算的,以及哪些因素对您的分数有更重要的影响。

如果没有访问Solr实例的权限,则无法确定您的分数是如何计算的,因为它取决于许多因素(匹配项、术语、字段、频率等)。我的建议是在查询中添加
debugQuery=true
,并检查您将获得的调试输出(另一个部分),其中包括如何转换查询以及如何计算分数,请做好准备,因为输出非常详细

我强烈建议您使用是一个非常有用的表示,说明如何计算分数,以及哪些因素对您的分数有更重要的影响