Skip to content
曹春晖 edited this page Sep 24, 2016 · 14 revisions

Elasticsql is a tool to convert sql to elasticsearch DSL.

A lot of users use Elasticsearch to store their structured data, to solve the real-time bigdata query problem(eg. 10 million orders per day, and realtime query by create-time or city or some other fields). But reality is cruel, Elasticsearch only provides http restful api and DSL query style, and the DSL is easy to learn but hard to write.

If users are familiar with Elasticsearch DSL, they can also use orm-like library

https://github.com/olivere/elastic

to build query. But whatever you use to build DSL, there will always be a big learning cost.

So some other libraries are built to provide ways to convert sql to Elasticsearch dsl. Elasticsql is one of them, implemented by golang.

Clone this wiki locally