Skip to content

Commit

Permalink
Compute count, not rank divided by total.
Browse files Browse the repository at this point in the history
  • Loading branch information
David Fisher committed Mar 28, 2024
1 parent 3f63549 commit 55e368f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion db/scorers/p@10.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ eachDoc(function(doc, i) {
}
total = total + 1
}, k);
const score = rank / total : 0.0;
const score = count / total : 0.0;
setScore(score);

0 comments on commit 55e368f

Please sign in to comment.