Skip to content

Commit

Permalink
modified weight for knn scorer
Browse files Browse the repository at this point in the history
  • Loading branch information
metonymic-smokey committed Jan 6, 2025
1 parent be61628 commit 10d95f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion search/scorer/scorer_knn.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ func (sqs *KNNQueryScorer) Score(ctx *search.SearchContext,
}

func (sqs *KNNQueryScorer) Weight() float64 {
return sqs.queryBoost * sqs.queryBoost
return 1.0
}

func (sqs *KNNQueryScorer) SetQueryNorm(qnorm float64) {
Expand Down

0 comments on commit 10d95f7

Please sign in to comment.