get aliases
This commit is contained in:
parent
d2a91702fd
commit
71d6bc3694
12
goes.go
12
goes.go
@ -629,3 +629,15 @@ func (c *Connection) OpenIndex(name string) (*Response, error) {
|
|||||||
|
|
||||||
return r.Run()
|
return r.Run()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (c *Connection) GetAliases(indexes []string) (*Response, error) {
|
||||||
|
|
||||||
|
r := Request{
|
||||||
|
Conn: c,
|
||||||
|
IndexList: indexes,
|
||||||
|
method: "GET",
|
||||||
|
api: "_alias/",
|
||||||
|
}
|
||||||
|
|
||||||
|
return r.Run()
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user