Skip to content

Files

_examples

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
May 2, 2022
Feb 8, 2022
Apr 11, 2022
Feb 8, 2022
Mar 24, 2022
Mar 10, 2023
Feb 8, 2022
Feb 8, 2022
Mar 10, 2023
Oct 14, 2019
Feb 10, 2022
Dec 7, 2021
Dec 7, 2021
Dec 7, 2021
Jan 11, 2023

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.