Skip to content

Commit

Permalink
Sections code for vector search (#166)
Browse files Browse the repository at this point in the history
* initial sections code for dense vector index

---------

Co-authored-by: Abhi Dangeti <[email protected]>
  • Loading branch information
Thejas-bhat and abhinavdangeti authored Nov 2, 2023
1 parent eb9eb11 commit 6ed2ef3
Show file tree
Hide file tree
Showing 16 changed files with 1,449 additions and 40 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ on:
push:
branches:
- master
- v15.x
- v14.x
- v13.x
- v12.x
Expand All @@ -12,7 +13,7 @@ jobs:
test:
strategy:
matrix:
go-version: [1.18.x, 1.19.x, 1.20.x]
go-version: [1.19.x, 1.20.x, 1.21.x]
platform: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.platform }}
steps:
Expand Down
2 changes: 1 addition & 1 deletion cmd/zap/cmd/dict.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (

"github.com/RoaringBitmap/roaring"
"github.com/blevesearch/vellum"
zap "github.com/blevesearch/zapx/v15"
zap "github.com/blevesearch/zapx/v16"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/zap/cmd/docvalue.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
"sort"
"strconv"

zap "github.com/blevesearch/zapx/v15"
zap "github.com/blevesearch/zapx/v16"
"github.com/golang/snappy"
"github.com/spf13/cobra"
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/zap/cmd/explore.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (

"github.com/RoaringBitmap/roaring"
"github.com/blevesearch/vellum"
zap "github.com/blevesearch/zapx/v15"
zap "github.com/blevesearch/zapx/v16"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/zap/cmd/fields.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"encoding/binary"
"fmt"

zap "github.com/blevesearch/zapx/v15"
zap "github.com/blevesearch/zapx/v16"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/zap/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"fmt"
"os"

zap "github.com/blevesearch/zapx/v15"
zap "github.com/blevesearch/zapx/v16"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/zap/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
package main

import (
"github.com/blevesearch/zapx/v15/cmd/zap/cmd"
"github.com/blevesearch/zapx/v16/cmd/zap/cmd"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion docvalues.go
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ func (s *SegmentBase) VisitDocValues(localDocNum uint64, fields []string,
continue
}
fieldID := fieldIDPlus1 - 1
if dvIter, exists := s.fieldDvReaders[sectionInvertedIndex][fieldID]; exists &&
if dvIter, exists := s.fieldDvReaders[sectionInvertedTextIndex][fieldID]; exists &&
dvIter != nil {
dvs.dvrs[fieldID] = dvIter.cloneInto(dvs.dvrs[fieldID])
}
Expand Down
Loading

0 comments on commit 6ed2ef3

Please sign in to comment.