Skip to content

Commit

Permalink
Fixes to API usage, etc.
Browse files Browse the repository at this point in the history
  • Loading branch information
abhinavdangeti committed Oct 12, 2023
1 parent 70a5bed commit 1c00d08
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 0 additions & 3 deletions section_inverted_text_index.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down
2 changes: 1 addition & 1 deletion section_vector_index.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1c00d08

Please sign in to comment.