View Source ElasticsearchEx (Elasticsearch_ex v0.6.0)

Provides some convenient functions.

Summary

Types

@type response() :: {:ok, term()} | {:error, ElasticsearchEx.Error.t()}

Functions

Link to this function

index(document, opts \\ [])

View Source
@spec index(
  map(),
  keyword()
) :: response()

Refer to ElasticsearchEx.Api.Search.search/2 documentation.

Link to this function

search(query, opts \\ [])

View Source
@spec search(
  map(),
  keyword()
) :: response()

Refer to ElasticsearchEx.Api.Search.search/2 documentation.