Package Usage: go: github.com/opensearch-project/opensearch-go/v3
Package opensearch provides a Go client for OpenSearch.
Create the client with the NewDefaultClient function:
The OPENSEARCH_URL/ELASTICSEARCH_URL environment variable is used instead of the default URL, when set.
Use a comma to separate multiple URLs.
It is an error to set both environment variable.
To configure the client, pass a Config object to the NewClient function:
See the opensearch_integration_test.go file for more information.
Call the OpenSearch APIs by invoking the corresponding methods on the client:
See the github.com/opensearch-project/opensearch-go/opensearchapi package for more information about using the API.
See the github.com/opensearch-project/opensearch-go/opensearchtransport package for more information about configuring the transport.
2 versions
Latest release: over 1 year ago
View more package details: https://packages.ecosystem.code.gouv.fr/registries/proxy.golang.org/packages/github.com/opensearch-project/opensearch-go/v3