(ranking) Downtune score boost for unordered heading matces

This commit is contained in:
Viktor Lofgren 2024-12-11 15:44:29 +01:00
parent 461bc3eb1a
commit 73861e613f

View File

@ -454,7 +454,7 @@ public class IndexResultScoreCalculator {
for (int i = 0; i < weights.length; i++) { for (int i = 0; i < weights.length; i++) {
weights[i] = switch(HtmlTag.includedTags[i]) { weights[i] = switch(HtmlTag.includedTags[i]) {
case TITLE -> 2.5f; case TITLE -> 2.5f;
case HEADING -> 2.5f; case HEADING -> 1.25f;
case ANCHOR -> 0.2f; case ANCHOR -> 0.2f;
case NAV -> 0.1f; case NAV -> 0.1f;
case CODE -> 0.25f; case CODE -> 0.25f;