Skip to content

Commit

Permalink
resolve comments
Browse files Browse the repository at this point in the history
  • Loading branch information
CascadingRadium committed Dec 15, 2023
1 parent 8050d33 commit 45b6cec
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions search/collector/topn.go
Original file line number Diff line number Diff line change
Expand Up @@ -242,8 +242,7 @@ func (hc *TopNCollector) Collect(ctx context.Context, searcher search.Searcher,
}
if hc.knnHits != nil {
// we may have some knn hits left that did not match any of the top N tf-idf hits
// we need to add them to the collector store to consider
// them as well.
// we need to add them to the collector store to consider them as well.
for _, knnDoc := range hc.knnHits {
knnDoc.Score = hc.computeNewScore(nil, knnDoc)
err = hc.prepareDocumentMatch(searchContext, reader, knnDoc)
Expand Down

0 comments on commit 45b6cec

Please sign in to comment.