Skip to content
This repository was archived by the owner on Feb 26, 2026. It is now read-only.

About

Deprecated: Use the official Elasticsearch client for Go, both stack and serverless, at https://github.com/elastic/go-elasticsearch

Resources

Code of conduct

Contributing

Security policy

Stars

1 star

Watchers

179 watching

Forks

Important

This repository is deprecated. The go-elasticsearch client now supports both Elasticsearch Stack and Elasticsearch Serverless. Please use go-elasticsearch for all new projects.

Elasticsearch Serverless Client

main

This is the official Elastic client for the Elasticsearch Serverless service. If you're looking to develop your Go application with the Elasticsearch Stack, you should look at the Elasticsearch Client instead.

Installation

You can install the Elasticsearch Serverless Go client with the following commands:

go get -u github.com/elastic/elasticsearch-serverless-go@latest

Instantiate a Client

You can instantiate a client by running the following command:

client, err := elasticsearch.NewClient(elasticsearch.Config{
	APIKey: "you_api_key",
	Address: "https://my-project-url",
})

Usage

You can read to the official documentation page for a getting started guide.

Development

See CONTRIBUTING.

Docs

TBD

License 📗

Apache 2.0 © Elastic

About

Deprecated: Use the official Elasticsearch client for Go, both stack and serverless, at https://github.com/elastic/go-elasticsearch

Resources

Code of conduct

Contributing

Security policy

Stars

1 star

Watchers

179 watching

Forks

Releases

Used by

Contributors

Languages