# cch123/elasticsql

convert sql to elasticsearch DSL in golang(go)

Repository: https://github.com/cch123/elasticsql
Canonical: https://ross.abutalabs.com/products/elasticsql
Language: Go
License: MIT
License Family: permissive
Topics: elasticsearch, sql, golang, dsl, go, elastic, search
Last push: 2023-08-06T11:05:11+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 3661, "days_push": 1123, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1187, forks 199 (observed 2026-08-28T04:03:55.304756+00:00)

## What it is
A Go library that converts SQL queries into Elasticsearch DSL JSON. It supports common SQL expressions like comparisons, boolean logic, IN, LIKE, order by, limit, and aggregations.

## Use cases
- convert sql queries to elasticsearch dsl
- translate where clauses into elasticsearch bool queries
- generate elasticsearch aggregations from sql aggregate functions
- build a sql-like query interface over elasticsearch
- parse sql in golang for search backends

## When to choose
- you have users familiar with SQL who need to query Elasticsearch
- you want a lightweight Go library for SQL-to-DSL translation
- your queries use standard comparisons, boolean logic, and basic aggregations

## When to avoid
- you need joins, having, or null checks, which are unsupported
- you need a full SQL engine or JDBC-style driver for Elasticsearch
- the project is no longer actively developed and you need cutting-edge Elasticsearch features

## Facets
- artifact type: library
- maturity: maintenance
- function: parser, search-engine, serialization
- domain: databases, developer-tools
- platform: go, cross-platform
- tags: elasticsearch, sql-to-dsl, query-conversion, search

## Member repositories
- cch123/elasticsql (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:55.304756+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-30T06:23:42.352127+00:00, confidence not recorded.
  - readme: https://github.com/cch123/elasticsql (fetched 2026-08-28T04:03:55.304756+00:00, sha 71b0c11d1d05)
- Data as of 2026-08-30T08:39:29.467469+00:00.
