Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanhengl committed Feb 19, 2025
1 parent b280a6d commit 125dd4e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index/score.go
Original file line number Diff line number Diff line change
Expand Up @@ -226,9 +226,9 @@ func (p *contentProvider) scoreLineBM25(ms []*candidateMatch, lineNumber int) (f
var symbolInfo []*zoekt.Symbol
for _, m := range ms {
// In addition to boosting the term frequency, we adjust the final score to
// ensure that exact phrases matches get a high line score. This is necessary,
// ensure that exact phrase matches get a high line score. Thissymotion-prefix)g is necessary,
// because phrases are often the only match on a line and a term's contribution
// is limited by (k+1) and quickly saturates with increasing frequency.
// is limited by (k+1) and quickly saturates with term increasing frequency.
if !epsilonEqualsOne(m.scoreWeight) {
score = score * m.scoreWeight
}
Expand Down

0 comments on commit 125dd4e

Please sign in to comment.