Skip to content

radar/elastic

Repository files navigation

Elastic

Version GitHub Action Status

You Know, for (Elastic) Search.

Want to talk to Elastic Search in Elixir, but don't want to use raw HTTP calls? This package is for you.

Installation

  1. Add it as a dependency in mix.exs:
defp deps do
  [
    {:elastic, "~> 3.0"}
  ]
  1. Run mix deps.get

  2. Add it to the applications list in mix.exs:

def application do
  [extra_applications: [:elastic]]
end

Docs

Documentation can be found on hexdocs.pm

There's a bug / I have a feature request

If you've found a bug, please create a new issue or submit a pull request to fix that bug.

If you've got a feature request, then please submit a pull request which adds the functionality you want.

ElasticSearch version

This package is designed to work with and routinely tested against the following ElasticSearch versions:

  • 2.4.x
  • 5.x
  • 6.x

If you find any incompatibility issues, please file a GitHub issue about it here, or even better open a pull request to fix it. Thanks!

Elastic / Elastix / Tirexs

There's a similar package called Elastix, which provides similar functionality. I only found out about this package after I wrote Elastic and was using it in production; after first trialling tirexs -- and not finding its code very easy to understand.

It looks like the creator of Elastix and I have similar design ideals, so it really does come down to personal choice when deciding which library to use. I think Elastic has better documentation. Elastix has a Mapping API, but Elastic has a Scrolling API.

Choose your own adventure ;)

About

A thin veneer over HTTPotion that talks to Elastic Search

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages