EctoElk

A working Ecto adapter for Elasticsearch that leverages Elasticsearch's SQL support to enable familiar Ecto query patterns for Elasticsearch indices.

Supported Features

Query Operations

Query Operators

Aggregate Functions

Schema Operations

Storage Operations

Type Support

Query Features

Limitations

The following Ecto features are not yet implemented:

config.exs

config :ecto_elk, MyRepo,
  hostname: "localhost"
  # username: "username",
  # password: "password",
  port: 9200,
  secure: false #true to enable https

use adapter.

defmodule MyRepo do
  use Ecto.Repo, otp_app: :my_app, adapter: EctoElk.Adapter
end

Contributing

$ INTEGRATION=1 mix test

Guides

Installation

If available in Hex, the package can be installed by adding ecto_elk to your list of dependencies in mix.exs:

def deps do
  [
    {:ecto_elk, "~> 0.1.0"}
  ]
end

Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/ecto_elk.