Skip to content

Commit

Permalink
minor comment fixes etc
Browse files Browse the repository at this point in the history
  • Loading branch information
metonymic-smokey committed Aug 13, 2024
1 parent e213fdd commit 9c4107d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion faiss_vector_posting.go
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,12 @@ func (sb *SegmentBase) InterpretVectorIndex(field string, except *roaring.Bitmap
return nil, err
}
} else if eligibleDocIDs.Stats().Cardinality > 0 {
// None of the documents are eligible per the filter query.
// Non-zero documents eligible per the filter query.

// Making doubly sure that the deleted docs do not make their
// way into the "inclusion" list, even though that's been
// accounted for when computing the eligible doc IDs.
eligibleDocIDs.AndNot(except)

// vector IDs corresponding to the local doc numbers to be
// considered for the search
Expand Down

0 comments on commit 9c4107d

Please sign in to comment.