File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -17,23 +17,23 @@ Elasticsearch language clients are only backwards compatible with default distri
1717
1818When using Go modules, include the version in the import path, and specify either an explicit version or a branch:
1919
20- require github.com/elastic/go-elasticsearch/v7 7.16
21- require github.com/elastic/go-elasticsearch/v7 7.0.0
20+ require github.com/elastic/go-elasticsearch/v8 v8.0.0
21+ require github.com/elastic/go-elasticsearch/v7 7.17
2222
2323It's possible to use multiple versions of the client in a single project:
2424
2525 // go.mod
26- github.com/elastic/go-elasticsearch/v6 6.x
27- github.com/elastic/go-elasticsearch/v7 7.16
26+ github.com/elastic/go-elasticsearch/v7 v7.17.0
27+ github.com/elastic/go-elasticsearch/v8 v8.0.0
2828
2929 // main.go
3030 import (
31- elasticsearch6 "github.com/elastic/go-elasticsearch/v6"
3231 elasticsearch7 "github.com/elastic/go-elasticsearch/v7"
32+ elasticsearch8 "github.com/elastic/go-elasticsearch/v8"
3333 )
3434 // ...
35- es6, _ := elasticsearch6.NewDefaultClient()
3635 es7, _ := elasticsearch7.NewDefaultClient()
36+ es8, _ := elasticsearch8.NewDefaultClient()
3737
3838The ` main ` branch of the client is compatible with the current ` master ` branch of Elasticsearch.
3939
You can’t perform that action at this time.
0 commit comments