Package Usage: go: github.com/elastic/go-elasticsearch/v6
Package elasticsearch provides a Go client for Elasticsearch.
Create the client with the NewDefaultClient function:
The ELASTICSEARCH_URL environment variable is used instead of the default URL, when set.
Use a comma to separate multiple URLs.
To configure the client, pass a Config object to the NewClient function:
When using the Elastic Service (https://elastic.co/cloud), you can use CloudID instead of Addresses.
When either Addresses or CloudID is set, the ELASTICSEARCH_URL environment variable is ignored.
See the elasticsearch_integration_test.go file and the _examples folder for more information.
Call the Elasticsearch APIs by invoking the corresponding methods on the client:
See the github.com/elastic/go-elasticsearch/esapi package for more information about using the API.
See the github.com/elastic/go-elasticsearch/estransport package for more information about configuring the transport.
6 versions
Latest release: about 5 years ago
378 dependent packages
View more package details: https://packages.ecosystem.code.gouv.fr/registries/proxy.golang.org/packages/github.com/elastic/go-elasticsearch/v6