Registry / http-client / elastic-go-elasticsearch-v7

elastic-go-elasticsearch-v7

JSON →
library7.17.10gogounverified

Package elasticsearch provides a Go client for Elasticsearch.

go get github.com/elastic/go-elasticsearch/v7
INSTALL
IMPORT
SIG · ELASTIC-GO-ELASTIC
E
elastic-go-elasticsearch-v7
http-clientgov7.17.10
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

elasticsearch
✓ github.com/elastic/go-elasticsearch/v7

Minimal example showing how to create an Elasticsearch client.

package main import ( "fmt" "github.com/elastic/go-elasticsearch/v7" ) func main() { es, _ := elasticsearch.NewDefaultClient() fmt.Println("Elasticsearch client created") _ = es }
Debug
Known issues
breakingThis is the v7 client; for Elasticsearch 8.x use github.com/elastic/go-elasticsearch/v8.
fix
Use the appropriate major version for your Elasticsearch server version.
affects: >=7.0.0
Upgrade
Version history
7.17.10latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
31 hits · last 30 days
node
28
Resources
elastic-go-elasticsearch-v7 — go get elastic-go-elasticsearch-v7 · libregistry