Current section

Files

Jump to
elasticsearch_ex lib elasticsearch_ex.ex
Raw

lib/elasticsearch_ex.ex

defmodule ElasticsearchEx do
@moduledoc """
Provides some convenient functions.
"""
@doc """
Refer to `ElasticsearchEx.Api.Search.Core.search/2` documentation.
"""
@spec search(map(), keyword()) :: {:ok, term()} | {:error, ElasticsearchEx.Error.t()}
defdelegate search(query, opts), to: ElasticsearchEx.Api.Search.Core
end