You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please have a look at the collection of comprehensive examples in the repository at [https://github.com/elastic/go-elasticsearch/tree/master/_examples](https://github.com/elastic/go-elasticsearch/tree/master/_examples).
To install another version, modify the path or the branch name accordingly. The client major versions correspond to the {{es}} major versions.
@@ -27,7 +27,7 @@ mkdir my-elasticsearch-app && cd my-elasticsearch-app
27
27
cat > go.mod <<-END
28
28
module my-elasticsearch-app
29
29
30
-
require github.com/elastic/go-elasticsearch/v8 main
30
+
require github.com/elastic/go-elasticsearch/v9 main
31
31
END
32
32
33
33
cat > main.go <<-END
@@ -36,7 +36,7 @@ cat > main.go <<-END
36
36
import (
37
37
"log"
38
38
39
-
"github.com/elastic/go-elasticsearch/v8"
39
+
"github.com/elastic/go-elasticsearch/v9"
40
40
)
41
41
42
42
func main() {
@@ -55,8 +55,8 @@ go run main.go
55
55
The language clients are forward compatible; meaning that the clients support communicating with greater or equal minor versions of {{es}} without breaking. It does not mean that the clients automatically support new features of newer {{es}} versions; it is only possible after a release of a new client version. For example, a 8.12 client version won’t automatically support the new features of the 8.13 version of {{es}}, the 8.13 client version is required for that. {{es}} language clients are only backwards compatible with default distributions and without guarantees made.
56
56
57
57
| Elasticsearch Version | Elasticsearch-Go Branch | Supported |
0 commit comments