Current section
Files
Jump to
Current section
Files
lib/elastix_fork.ex
defmodule ElastixFork do
@moduledoc """
ElastixFork consists of several modules trying to match the Elasticsearch API, a
`ElastixFork.HTTP` module for raw requests and a `ElastixFork.JSON` module that allows using a
custom JSON library.
- `ElastixFork.Bulk` -- the [Bulk API](https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-bulk.html)
- `ElastixFork.Document` -- the [Document API](https://www.elastic.co/guide/en/elasticsearch/reference/current/docs.html)
- `ElastixFork.Index` -- the [Index API](https://www.elastic.co/guide/en/elasticsearch/reference/current/indices.html)
- `ElastixFork.Mapping` -- the [Mapping API](https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping.html)
- `ElastixFork.Search` -- the [Search API](https://www.elastic.co/guide/en/elasticsearch/reference/current/search.html)
"""
@doc false
def start, do: Application.ensure_all_started(:elastix_fork)
@doc false
def config, do: Application.get_all_env(:elastix_fork)
@doc false
def config(key, default \\ nil), do: Application.get_env(:elastix_fork, key, default)
end