(index) Correct handling of firstPosition to avoid d/z

This commit is contained in:
Viktor Lofgren 2024-08-10 10:21:59 +02:00
parent 98c40958ab
commit b730b17f52

View File

@ -218,7 +218,7 @@ public class IndexResultScoreCalculator {
int unorderedMatchInTitleCount = 0;
int unorderedMatchInHeadingCount = 0;
int firstPosition = 0;
int firstPosition = 1;
for (int i = 0; i < weightedCounts.length; i++) {
if (positions[i] != null && ctx.regularMask.get(i)) {
searchableKeywordsCount ++;