View Source Elastix.Alias (Elastix Search v1.0.1)
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
@spec get(elastic_url :: String.t(), name :: String.t()) :: Elastix.HTTP.resp()
Returns information about one or more index aliases.
examples
Examples
iex> Elastix.Alias.get("http://localhost:9200", "alias1")
{:ok, %HTTPoison.Response{...}}
@spec post(elastic_url :: String.t(), actions :: list()) :: Elastix.HTTP.resp()
Excepts a list of actions for the actions
parameter.
examples
Examples
iex> actions = [%{ add: %{ index: "test1", alias: "alias1" }}]
iex> Elastix.Alias.post("http://localhost:9200", actions)
{:ok, %HTTPoison.Response{...}}