Skip to content

Latest commit

 

History

History
53 lines (31 loc) · 875 Bytes

README.md

File metadata and controls

53 lines (31 loc) · 875 Bytes

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
  • UpdateByQuery

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