diff --git a/go.mod b/go.mod index e78e8023..b3332e8c 100644 --- a/go.mod +++ b/go.mod @@ -24,6 +24,6 @@ require ( replace github.com/blevesearch/bleve_index_api => ../bleve_index_api -replace github.com/blevesearch/go-faiss => /Users/thejasbhat/fts/vector_search/go-faiss +replace github.com/blevesearch/go-faiss => ../go-faiss replace github.com/blevesearch/scorch_segment_api/v2 => ../scorch_segment_api diff --git a/section_inverted_text_index.go b/section_inverted_text_index.go index a38cf004..f30f3ed1 100644 --- a/section_inverted_text_index.go +++ b/section_inverted_text_index.go @@ -30,9 +30,6 @@ type invertedTextIndexSection struct { } func (i *invertedTextIndexSection) Process(opaque map[int]resetable, docNum uint64, field index.Field, fieldID uint16) { - if _, ok := field.(index.VectorField); ok { - return // skip vector fields - } invIndexOpaque := i.getInvertedIndexOpaque(opaque) invIndexOpaque.process(field, fieldID, docNum) } diff --git a/section_vector_index.go b/section_vector_index.go index e4eb98dc..5fea4230 100644 --- a/section_vector_index.go +++ b/section_vector_index.go @@ -238,7 +238,7 @@ func (v *vectorIndexOpaque) mergeAndWriteVectorIndexes(fieldID int, sbs []*Segme return err } - index = index.AsIVF() + index, _ = index.AsIVF() err = index.MakeDirectMap(2) if err != nil { return err