An open API service indexing awesome lists of open source software.

https://github.com/grokify/goelastic

Elasticsearch client with JSON API interface in Go.
https://github.com/grokify/goelastic

elasticsearch go golang search-engine

Last synced: about 2 months ago
JSON representation

Elasticsearch client with JSON API interface in Go.

Awesome Lists containing this project

README

        

# GoElastic: A Go Client Wrapper for Elasticsearch

[![Build Status][build-status-svg]][build-status-url]
[![Lint Status][lint-status-svg]][lint-status-url]
[![Go Report Card][goreport-svg]][goreport-url]
[![Docs][docs-godoc-svg]][docs-godoc-url]
[![License][license-svg]][license-url]

Simple client to query Elasticsearch API using HTTP API documentation.

## Usage

See the sample code in the [docs folder](docs).

So far the following example code has been created:

1. Create Index: [Go code](docs/reference/indices-create-index), [ES docs](https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-create-index.html)
1. Index Docs: [Go code](docs/reference/docs-index), [ES docs](https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-index_.html)
1. Bool Query: [Go code](docs/reference/query-dsl-bool-query), [ES docs](https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-bool-query.html)
1. Terms Aggregation: [Go code](docs/reference/search-aggregations-bucket-terms-aggregation), [ES docs](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-terms-aggregation.html#search-aggregations-bucket-terms-aggregation)

## References

1. Mapping
1. [An Introduction to Elasticsearch Mapping](https://www.elastic.co/blog/found-elasticsearch-mapping-introduction)

[build-status-svg]: https://github.com/grokify/goelastic/actions/workflows/ci.yaml/badge.svg?branch=master
[build-status-url]: https://github.com/grokify/goelastic/actions/workflows/ci.yaml
[lint-status-svg]: https://github.com/grokify/goelastic/actions/workflows/lint.yaml/badge.svg?branch=master
[lint-status-url]: https://github.com/grokify/goelastic/actions/workflows/lint.yaml
[goreport-svg]: https://goreportcard.com/badge/github.com/grokify/goelastic
[goreport-url]: https://goreportcard.com/report/github.com/grokify/goelastic
[docs-godoc-svg]: https://pkg.go.dev/badge/github.com/grokify/goelastic
[docs-godoc-url]: https://pkg.go.dev/github.com/grokify/goelastic
[license-svg]: https://img.shields.io/badge/license-MIT-blue.svg
[license-url]: https://github.com/grokify/goelastic/blob/master/LICENSE