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.
- Add it as a dependency in
mix.exs
:
defp deps do
[
{:elastic, "~> 1.0"}
]
-
Run
mix deps.get
-
Add it to the applications list in
mix.exs
:
def application do
[applications: [:elastic]]
end
Documentation can be found on hexdocs.pm
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.
This package is designed to work with ElasticSearch 2.4.x, since that's the version I am personally using.
I think if there are API compatibility issues with ElasticSearch 5.x then we should look at creating a branch for 5.x compatibility. Please submit a pull request to kick off this process.
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 ;)