Elastix.Alias (Elastix v0.10.0) View Source

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

Aliases documentation

Link to this section Summary

Functions

Returns information about one or more index aliases.

Excepts a list of actions for the actions parameter.

Link to this section Functions

Link to this function

get(elastic_url, name \\ "")

View Source

Specs

get(elastic_url :: String.t(), name :: String.t()) :: Elastix.HTTP.resp()

Returns information about one or more index aliases.

Examples

iex> Elastix.Alias.get("http://localhost:9200", "alias1")
{:ok, %HTTPoison.Response{...}}
Link to this function

post(elastic_url, actions)

View Source

Specs

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

Excepts a list of actions for the actions parameter.

Examples

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