A minimalistic elasticsearch client in Go (golang)
Go
Pull request Compare This branch is 4 commits ahead of maximelamure:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
client.go
client_test.go
helper_test.go
structs.go

README.md

Elasticsearch with go (golang)

A minimalistic elasticsearch client in Go (golang).

This package is a basic wrapper which exposes Elasticsearch methods in GO. It helps you to stay focus on your queries and your index mapping by doing for you the communication with elasticsearch.

Methods

Index management:

  • CreateIndex
  • DeleteIndex
  • UpdateIndexSetting
  • IndexSettings
  • IndexExists
  • Status
  • GetIndicesFromAlias
  • UpdateAlias

CRUD:

  • InsertDocument
  • Document
  • DeleteDocument

Process:

  • Bulk

Queries:

  • Search
  • Multi Search
  • Suggest

Compatibility

Support all Elasticsearch versions

Install

go get github.com/maximelamure/elasticsearch

Usage

Below is an example which shows some common use cases. Check client_test.go for more usage.

TBD