Skip to content

Commit

Permalink
Fix populating the filter hits map
Browse files Browse the repository at this point in the history
  • Loading branch information
metonymic-smokey committed Oct 9, 2024
1 parent fab6e1e commit 02caed1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions search_knn.go
Original file line number Diff line number Diff line change
Expand Up @@ -407,8 +407,8 @@ func (i *indexImpl) runKnnCollector(ctx context.Context, req *SearchRequest, rea
filterHits := filterColl.Results()
if len(filterHits) > 0 {
filterHitsMap[idx] = make([]index.IndexInternalID, len(filterHits))
for _, docMatch := range filterHits {
filterHitsMap[idx] = append(filterHitsMap[idx], docMatch.IndexInternalID)
for i, docMatch := range filterHits {
filterHitsMap[idx][i] = docMatch.IndexInternalID
}
requiresFiltering[idx] = true
}
Expand Down

0 comments on commit 02caed1

Please sign in to comment.