View Source Elastix.Alias (Elastix Search v1.0.1)

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
@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{...}}
Link to this function

post(elastic_url, actions)

View Source
@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{...}}