A tool to compile SQL to Elasticsearch queries
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Dylan Baker 0d31435066 Add readme 5 months ago
src Add bin 9 months ago
.gitignore Initial comit 9 months ago
Cargo.lock Rename crate 9 months ago
Cargo.toml Add bin 9 months ago
Makefile Rename crate 9 months ago
README.md Add readme 5 months ago



Kappe is a tool designed to compile SQL to Elasticsearch’s JSON-based query syntax. Currently, the featureset is small, basic SELECT a, b, c FROM d WHERE e = "f" queries work. Output is printed to STDOUT where it can be collected onto the clipboard or into a file for later use.


Install Rust if you don’t have it already.

$ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

Once you have Rust installed, you can use Cargo to install Kappe.

$ git clone https://git.simulacrum.party/simulacrumparty/kappe
$ cd kappe
$ cargo install --path .


$ kappe 'select a, b, c from d where e = f'
GET /documents/_search
  "_source": [
  "query": {
    "bool": {
      "filter": [
          "term": {
            "e": "f"