Skip to content

Commit

Permalink
MB-61889: Accommodate updates to VectorIndexReader interface (#23)
Browse files Browse the repository at this point in the history
Upgrade to bleve_index_api@v1.1.11.
  • Loading branch information
abhinavdangeti authored Aug 7, 2024
1 parent 9b5569c commit be9427b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/blevesearch/sear
go 1.20

require (
github.com/blevesearch/bleve_index_api v1.1.10
github.com/blevesearch/bleve_index_api v1.1.11
github.com/blevesearch/vellum v1.0.10
)

Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
github.com/bits-and-blooms/bitset v1.2.0 h1:Kn4yilvwNtMACtf1eYDlG8H77R07mZSPbMjLyS07ChA=
github.com/bits-and-blooms/bitset v1.2.0/go.mod h1:gIdJ4wp64HaoK2YrL1Q5/N7Y16edYb8uY+O0FJTyyDA=
github.com/blevesearch/bleve_index_api v1.1.10 h1:PDLFhVjrjQWr6jCuU7TwlmByQVCSEURADHdCqVS9+g0=
github.com/blevesearch/bleve_index_api v1.1.10/go.mod h1:PbcwjIcRmjhGbkS/lJCpfgVSMROV6TRubGGAODaK1W8=
github.com/blevesearch/bleve_index_api v1.1.11 h1:OTNpRnxPWFIhMSgBUBlkD7RVWYrfsojtQeACb8tGGpw=
github.com/blevesearch/bleve_index_api v1.1.11/go.mod h1:PbcwjIcRmjhGbkS/lJCpfgVSMROV6TRubGGAODaK1W8=
github.com/blevesearch/mmap-go v1.0.4 h1:OVhDhT5B/M1HNPpYPBKIEJaD0F3Si+CrEKULGCDPWmc=
github.com/blevesearch/mmap-go v1.0.4/go.mod h1:EWmEAOmdAS9z/pi/+Toxu99DnsbhG1TIxUoRmJw/pSs=
github.com/blevesearch/vellum v1.0.10 h1:HGPJDT2bTva12hrHepVT3rOyIKFFF4t7Gf6yMxyMIPI=
Expand Down
3 changes: 2 additions & 1 deletion vector.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ package sear
import (
"bytes"
"context"
"encoding/json"

index "github.com/blevesearch/bleve_index_api"
)
Expand All @@ -33,7 +34,7 @@ func (d *Document) interpretVectorIfApplicable(field index.Field) int {
}

func (r *Reader) VectorReader(ctx context.Context, vector []float32,
field string, k int64) (index.VectorReader, error) {
field string, k int64, searchParams json.RawMessage) (index.VectorReader, error) {
if r.s.doc == nil {
return NewVectorFieldReaderEmpty(), nil
}
Expand Down

0 comments on commit be9427b

Please sign in to comment.