Skip to content

Commit

Permalink
docNum to be of type uint32 in section's Process(..)
Browse files Browse the repository at this point in the history
  • Loading branch information
abhinavdangeti committed Nov 3, 2023
1 parent b610c16 commit fdff547
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions section_faiss_vector_index.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func init() {
type faissVectorIndexSection struct {
}

func (v *faissVectorIndexSection) Process(opaque map[int]resetable, docNum uint64, field index.Field, fieldID uint16) {
func (v *faissVectorIndexSection) Process(opaque map[int]resetable, docNum uint32, field index.Field, fieldID uint16) {
if fieldID == math.MaxUint16 {
return
}
Expand Down Expand Up @@ -447,7 +447,7 @@ func (vo *vectorIndexOpaque) writeVectorIndexes(w *CountHashWriter) (offset uint
return 0, nil
}

func (vo *vectorIndexOpaque) process(field index.VectorField, fieldID uint16, docNum uint64) {
func (vo *vectorIndexOpaque) process(field index.VectorField, fieldID uint16, docNum uint32) {
if !vo.init {
vo.init = true
vo.allocateSpace()
Expand All @@ -472,7 +472,7 @@ func (vo *vectorIndexOpaque) process(field index.VectorField, fieldID uint16, do
}
}
// add the docID to the bitmap
vo.vecIDMap[vecHash].docIDs.Add(uint32(docNum))
vo.vecIDMap[vecHash].docIDs.Add(docNum)

// tracking the unique vectors for every field which will be used later
// to construct the vector index.
Expand Down

0 comments on commit fdff547

Please sign in to comment.