mirror of
https://github.com/MarginaliaSearch/MarginaliaSearch.git
synced 2025-02-23 21:18:58 +00:00
(index) Correct handling of firstPosition to avoid d/z
This commit is contained in:
parent
98c40958ab
commit
b730b17f52
@ -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 ++;
|
||||
|
Loading…
Reference in New Issue
Block a user