# NLPchina/elasticsearch-sql

Use SQL to query Elasticsearch

Repository: https://github.com/NLPchina/elasticsearch-sql
Canonical: https://ross.abutalabs.com/products/elasticsearch-sql
Language: Java
License: Apache-2.0
License Family: permissive
Topics: sql, elasticsearch
Last push: 2026-06-30T06:12:34+00:00

## Health v2 (maintenance only)
Score: 85/100 (v2, computed 2026-09-03T02:39:23.370411+00:00)
- activity 90, release rhythm 70, longevity 100
- inputs: {"age_days": 4392, "days_push": 64, "days_rel": 121, "gap_med": 0, "n_releases_24m": 64}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 7012, forks 1528 (observed 2026-08-28T04:09:53.311609+00:00)

## What it is
An Elasticsearch plugin that lets users query Elasticsearch indices using familiar SQL syntax instead of the native query DSL. It is officially deprecated in favor of x-pack SQL and OpenDistro SQL.

## Use cases
- query elasticsearch with sql
- run sql select statements against es indices
- explain sql queries as elasticsearch dsl
- use sql joins and aggregations on elasticsearch
- give analysts sql access to search data

## When to choose
- you need sql access on legacy elasticsearch 1.x-9.x clusters without x-pack
- you want a free apache-licensed sql layer for older es versions

## When to avoid
- starting a new project - use x-pack-sql or OpenDistro SQL instead
- you need actively maintained software with support

## Facets
- artifact type: plugin
- maturity: maintenance
- function: search-engine, database, parser
- domain: databases, developer-tools
- platform: jvm, self-hosted
- tags: elasticsearch-plugin, sql-query, deprecated, search

## Member repositories
- NLPchina/elasticsearch-sql (main) score 85

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:53.311609+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:40:42.653399+00:00, confidence not recorded.
  - readme: https://github.com/NLPchina/elasticsearch-sql (fetched 2026-08-28T04:09:53.311609+00:00, sha 68446bfdf8c3)
- Data as of 2026-08-30T08:39:29.467469+00:00.
