Skip to content

Latest commit

 

History

History

_examples

This directory contains examples and recipes for the Elasticsearch Go client.

Configuration & Customization

The configuration.go and customization.go files contain information for configuring and customizing the client transport.

Logging

The logging directory contains examples for using the default loggers and implementing a custom logger.

Bulk

The bulk directory contains a comprehensive example of using the Bulk API.

Encoding

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.

Fast HTTP

The fasthttp directory contains a demonstration of replacing the default client transport with an HTTP client from the github.com/valyala/fasthttp package.

Instrumentation

The instrumentation directory contains recipes for instrumenting the client with the OpenCensus and Elastic APM packages.

Extension

The extension directory contains an example of extending the client APIs, for example to support custom endpoints installed by a plugin.

Google Cloud Functions

The cloudfunction directory contains a simple web service for checking Elasticsearch cluster status.

XKCD Search

The xkcdsearch directory contains a command-line utility for indexing and searching an archive of xkcd.com artworks.