Skip to content

Commit

Permalink
MB-63736: Yet another shortcoming from an earlier commit (#2087)
Browse files Browse the repository at this point in the history
Regression introduced with
#2084
  • Loading branch information
abhinavdangeti authored Oct 9, 2024
1 parent c0e3ff2 commit 3c77b49
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion search_knn.go
Original file line number Diff line number Diff line change
Expand Up @@ -410,8 +410,10 @@ func (i *indexImpl) runKnnCollector(ctx context.Context, req *SearchRequest, rea
for i, docMatch := range filterHits {
filterHitsMap[idx][i] = docMatch.IndexInternalID
}
requiresFiltering[idx] = true
}
// set requiresFiltering regardless of whether there're filtered hits or
// not to later decide whether to consider the knnQuery or not
requiresFiltering[idx] = true
}

// Add the filter hits when creating the kNN query
Expand Down

0 comments on commit 3c77b49

Please sign in to comment.