Skip to content

Commit

Permalink
Increase filename boost
Browse files Browse the repository at this point in the history
  • Loading branch information
jtibshirani committed May 28, 2024
1 parent fe8f2a3 commit c22833f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion score.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ func (d *indexData) scoreFileUsingBM25(fileMatch *FileMatch, doc uint32, cands [
term := string(cand.substrLowered)

if cand.fileName {
termFreqs[term] += 2
termFreqs[term] += 5
} else {
termFreqs[term]++
}
Expand Down

0 comments on commit c22833f

Please sign in to comment.