elasticsearch v0.1.1 Elasticsearch.Executable View Source

Wraps an Elasticsearch executable so it can be run as part of the Elixir supervision tree.

See Mix.Tasks.Elasticsearch.Install to install Elasticsearch to a directory for your project.

Example

Add a worker to your supervision tree, like so:

worker(Elasticsearch.Executable, [
  "Elasticsearch",
  "./vendor/elasticsearch/bin/elasticsearch",
  9200
], id: :elasticsearch),