View Source ElasticsearchApi.Utils (Elasticsearch API v0.1.0)

Provides some utilities to interact with Elasticsearch data.

Summary

Types

Functions

@spec extract_body!({:ok, response()}) :: any()
@spec extract_hits!({:ok, response()} | {:error, any()}) :: [map()]
Link to this function

generate_path(opts, path_fn)

View Source
@spec generate_path(
  keyword(),
  (nil | binary() -> binary())
) :: {binary() | URI.t(), keyword()}
@spec json_headers() :: map()