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, orElastic.Index.use_mix_env: AddsMix.envto an index, so that the index name used is something likedev_answer. Can be used in conjunction withindex_prefixto get things likecompany_dev_answeras the index name.