Skip to content

maximelamure/elasticsearch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A minimalistic elasticsearch client in Go (golang)

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages