get aliases

This commit is contained in:
Marin Bek 2016-09-09 13:22:47 +02:00
parent d2a91702fd
commit 71d6bc3694

12
goes.go
View File

@ -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()
}