Details
-
Improvement
-
Resolution: Unresolved
-
Minor
-
None
-
9.5.1
-
None
-
Win 10, XWiki 9.5.1
-
Unknown
-
Description
When pages inside the wiki have the same scoring in solr, the date is not seen as a differentiator so that the most recent results appear on top.
- Create a page abc
- Wait for a couple of minutes
- Create another page abc in another location
- Perform a search with abc as term and with the debugger in place
http://localhost:8080/xwiki/bin/view/Main/Search?text=abc&f_type=DOCUMENT&f_locale=en&f_locale=&r=1&debug=true
You will see the listed results, with the most recent created below the older one. Their scores are equal as seen here:
- Main abc
37.50109 = max of: 0.13647377 = weight(spaces:abc in 13) [SchemaSimilarity], result of: 0.13647377 = score(doc=13,freq=1.0 = termFreq=1.0 ), product of: 0.016 = boost 7.780052 = idf, computed as log(1 + (docCount - docFreq + 0.5) / (docFreq + 0.5)) from: 2.0 = docFreq 5980.0 = docCount 1.0963436 = tfNorm, computed as (freq * (k1 + 1)) / (freq + k1 * (1 - b + b * fieldLength / avgFieldLength)) from: 1.0 = termFreq=1.0 1.2 = parameter k1 0.75 = parameter b 1.2735786 = avgFieldLength 1.0 = fieldLength 37.50109 = max of: 37.50109 = weight(title_en:abc in 13) [SchemaSimilarity], result of: 37.50109 = score(doc=13,freq=1.0 = termFreq=1.0 ), product of: 10.0 = boost 3.346389 = idf, computed as log(1 + (docCount - docFreq + 0.5) / (docFreq + 0.5)) from: 2.0 = docFreq 70.0 = docCount 1.1206435 = tfNorm, computed as (freq * (k1 + 1)) / (freq + k1 * (1 - b + b * fieldLength / avgFieldLength)) from: 1.0 = termFreq=1.0 1.2 = parameter k1 0.75 = parameter b 1.3571428 = avgFieldLength 1.0 = fieldLength
----------------------
- Sandbox abc
37.50109 = max of: 0.08808337 = weight(spaces:abc in 1) [SchemaSimilarity], result of: 0.08808337 = score(doc=1,freq=1.0 = termFreq=1.0 ), product of: 0.016 = boost 7.780052 = idf, computed as log(1 + (docCount - docFreq + 0.5) / (docFreq + 0.5)) from: 2.0 = docFreq 5980.0 = docCount 0.70760584 = tfNorm, computed as (freq * (k1 + 1)) / (freq + k1 * (1 - b + b * fieldLength / avgFieldLength)) from: 1.0 = termFreq=1.0 1.2 = parameter k1 0.75 = parameter b 1.2735786 = avgFieldLength 2.56 = fieldLength 37.50109 = max of: 37.50109 = weight(title_en:abc in 1) [SchemaSimilarity], result of: 37.50109 = score(doc=1,freq=1.0 = termFreq=1.0 ), product of: 10.0 = boost 3.346389 = idf, computed as log(1 + (docCount - docFreq + 0.5) / (docFreq + 0.5)) from: 2.0 = docFreq 70.0 = docCount 1.1206435 = tfNorm, computed as (freq * (k1 + 1)) / (freq + k1 * (1 - b + b * fieldLength / avgFieldLength)) from: 1.0 = termFreq=1.0 1.2 = parameter k1 0.75 = parameter b 1.3571428 = avgFieldLength 1.0 = fieldLength
Equal scoring is a rare case in the standard search, however on simplified versions which look (for eg) just in document titles, this situation may occur often.