ElastixFork Fork v0.0.1 ElastixFork.Alias

The alias API makes it possible to perform alias operations on indexes.

Aliases documentation

Link to this section Summary

Functions

Excepts a list of actions for the actions parameter.

Link to this section Functions

Link to this function

post(elastic_url, actions)

post(elastic_url :: String.t(), actions :: list()) :: ElastixFork.HTTP.resp()

Excepts a list of actions for the actions parameter.

Examples

iex> actions = [%{ add: %{ index: "test1", alias: "alias1" }}]
iex> ElastixFork.Alias.post("http://localhost:9200", actions)
{:ok, %HTTPoison.Response{...}}