Sitecore Solr Search Score Value

时光总嘲笑我的痴心妄想 提交于 2019-12-02 12:20:38

There is a post relating to this on the Sitecore Knowledge Base stating that Score of the hit is being multiplied by 0, therefore all results have the same score.

The post is relating the Lucene but I believe it is relevant to Solr as well.

To resolve

  1. In Sitecore navigate to the /sitecore/templates/System/Templates/Sections/Indexing section.
  2. Create a Standard Values item for this section.
  3. Enter the value 1 in the Boost Value field of the above-mentioned Standard Values item.
  4. Save, publish and re-index

As your instance of is an upgraded version 6.6, before ContentSearch existed, the Standard Value didn't exist nor created in upgrade scripts.

The following should be exist to apply boosting feature and sorting items accordingly:

  • The search should be with more than one clause, else the items retrived will have the same score value
  • When search contains more than clause ( predicate ) they will have the same weight on the score value unless applying the boost method ".Boost(10.0f).
  • The combination between clauses should be "OR", Else the returned items must match all predicates to be retrieved which means same score value.
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!