# elastic/go-elasticsearch

The official Go client for Elasticsearch

Repository: https://github.com/elastic/go-elasticsearch
Canonical: https://ross.abutalabs.com/products/go-elasticsearch
Homepage: https://github.com/elastic/go-elasticsearch#go-elasticsearch
Language: Go
License: Apache-2.0
License Family: permissive
Topics: elasticsearch, golang, go, client
Last push: 2026-08-26T08:59:58+00:00

## Health v2 (maintenance only)
Score: 99/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 99, longevity 100
- inputs: {"age_days": 3446, "days_push": 7, "days_rel": 8, "gap_med": 0.0, "n_releases_24m": 39}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 6063, forks 642 (observed 2026-08-28T04:09:34.727826+00:00)

## What it is
The official Go client for Elasticsearch, providing low-level and typed APIs for indexing, searching, and managing Elasticsearch clusters. It includes esutil helpers, typed API with ES|QL/DSL builders, and observability features.

## Use cases
- connect to elasticsearch from go
- index and search documents in elasticsearch using go
- query elasticsearch with a typed go api
- bulk index documents into elasticsearch
- manage elasticsearch indices and cluster from go

## When to choose
- you need the officially supported Elasticsearch client for a Go application
- you want typed APIs and DSL builders instead of hand-writing JSON
- you need bulk indexing helpers and observability hooks

## When to avoid
- you use a different search engine like OpenSearch or Solr
- your project is not in Go
- you need a client for a database other than Elasticsearch

## Facets
- artifact type: library
- maturity: stable
- function: database-driver, search-engine, http-client
- domain: databases, developer-tools
- platform: go, cross-platform
- tags: elasticsearch, official-client, typed-api, esdsl, search

## Member repositories
- elastic/go-elasticsearch (main) score 99

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:34.727826+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:48:43.695563+00:00, confidence not recorded.
  - readme: https://github.com/elastic/go-elasticsearch (fetched 2026-08-28T04:09:34.727826+00:00, sha ecb5b48a12de)
  - homepage: https://github.com/elastic/go-elasticsearch#go-elasticsearch (fetched 2026-08-29T08:45:04.437287+00:00, sha 170588d3dc4f)
- Data as of 2026-08-30T08:39:29.467469+00:00.
