Skip to content

Commit

Permalink
added build tags
Browse files Browse the repository at this point in the history
  • Loading branch information
Thejas-bhat committed Aug 9, 2023
1 parent 165d9a5 commit 6538131
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
"github.com/blevesearch/vellum"
)

const Version uint32 = 15
const Version uint32 = 16

const Type string = "zap"

Expand Down
1 change: 0 additions & 1 deletion section.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,4 @@ const (

var segmentSections = map[uint16]section{
sectionInvertedIndex: &invertedIndexSection{},
sectionVectorIndex: &vectorIndexSection{},
}
9 changes: 7 additions & 2 deletions section_vector_index.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package zap
//go:build densevector
// +build densevector

// keep a build tag for this file.
package zap

import (
"encoding/binary"
Expand All @@ -11,6 +12,10 @@ import (
faiss "github.com/blevesearch/go-faiss"
)

func init() {
segmentSections[sectionVectorIndex] = &vectorIndexSection{}
}

type vectorIndexSection struct {
}

Expand Down
3 changes: 3 additions & 0 deletions vector_search.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
//go:build densevector
// +build densevector

package zap

import (
Expand Down
3 changes: 3 additions & 0 deletions vector_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
//go:build densevector
// +build densevector

package zap

import (
Expand Down

0 comments on commit 6538131

Please sign in to comment.