Elastic v0.9.0 Elastic

Elastic is a thin veneer over HTTPotion to help you talk to your Elastic Search stores.

Elastic provides two main ways of talking to the stores:

  • Elastic.Document.API: Adds functions to a module to abstract away some of the mess of actions on an index.
  • Elastic.HTTP: A very thin veneer over HTTPotion and Poison to make queries to your Elastic Search store.

Configuration

You can configure the way Elastic behaves by using the following configuration options:

  • base_url: Where your Elastic Search instance is located. Defaults to http://localhost:9200.
  • index_prefix: A prefix to use for all indexes. Only used when using the Document API, or Elastic.Index.
  • use_mix_env: Adds Mix.env to an index, so that the index name used is something like dev_answer. Can be used in conjunction with index_prefix to get things like company_dev_answer as the index name.