Elastix.Alias (Elastix v0.10.0) View Source
The alias API makes it possible to perform alias operations on indexes.
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
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{...}}
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{...}}