This directory contains examples and recipes for the Elasticsearch Go client.
The configuration.go and customization.go files contain information for configuring and customizing the client transport.
The logging directory contains examples for using the default loggers and implementing a custom logger.
The bulk directory contains a comprehensive example of using the Bulk API.
The encoding directory contains examples of using third-party packages
and client helper methods for a more efficient encoding and decoding of the request and response bodies.
The fasthttp directory contains a demonstration of replacing the default client transport with an HTTP client from the github.com/valyala/fasthttp package.
The instrumentation directory contains recipes for instrumenting the client with the OpenCensus and Elastic APM packages.
The extension directory contains an example of extending the client APIs, for example
to support custom endpoints installed by a plugin.
The cloudfunction directory contains a simple web service for checking Elasticsearch cluster status.
The xkcdsearch directory contains a command-line utility for indexing and searching an archive of xkcd.com artworks.