Skip to content

Commit 7efdbbb

Browse files
authored
add support for zap v15 and update zap version (#1482)
* add support for zap v15 and update zap version
1 parent b9b7759 commit 7efdbbb

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

go.mod

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@ require (
88
github.com/blevesearch/go-porterstemmer v1.0.3
99
github.com/blevesearch/segment v0.9.0
1010
github.com/blevesearch/snowballstem v0.9.0
11-
github.com/blevesearch/zap/v11 v11.0.10
12-
github.com/blevesearch/zap/v12 v12.0.10
13-
github.com/blevesearch/zap/v13 v13.0.2
14-
github.com/blevesearch/zap/v14 v14.0.1
11+
github.com/blevesearch/zap/v11 v11.0.11
12+
github.com/blevesearch/zap/v12 v12.0.11
13+
github.com/blevesearch/zap/v13 v13.0.3
14+
github.com/blevesearch/zap/v14 v14.0.2
15+
github.com/blevesearch/zap/v15 v15.0.0
1516
github.com/couchbase/moss v0.1.0
1617
github.com/couchbase/vellum v1.0.2
1718
github.com/golang/protobuf v1.3.2

index/scorch/segment_plugin.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,15 @@ import (
2323
zapv12 "github.com/blevesearch/zap/v12"
2424
zapv13 "github.com/blevesearch/zap/v13"
2525
zapv14 "github.com/blevesearch/zap/v14"
26+
zapv15 "github.com/blevesearch/zap/v15"
2627
)
2728

2829
var supportedSegmentPlugins map[string]map[uint32]segment.Plugin
2930
var defaultSegmentPlugin segment.Plugin
3031

3132
func init() {
3233
ResetPlugins()
34+
RegisterPlugin(zapv15.Plugin(), false)
3335
RegisterPlugin(zapv14.Plugin(), false)
3436
RegisterPlugin(zapv13.Plugin(), false)
3537
RegisterPlugin(zapv12.Plugin(), false)

0 commit comments

Comments
 (0)