v0.5.0 release
Breaking changes
GetIndices()
renamed toGetAllIndices()
- New function
GetIndices(string)
- returns a subset of indices matching the string
- New function
New features
-
Several functions to work with aliases
GetAliases(string)
- returns a subset of indices matching the stringGetAllAliases()
- return all the aliases on the clusterModifyAliases([]AliasAction)
- add/update/delete aliases
-
Several functions to work with shards
GetShards([]string)
- returns shards that exist on the given nodes, empty array returns all shardsGetShardOverlap([]string)
- provide a list of node names and returns a map containing information to determine if all copies of a shard exist on those nodesGetShardRecovery([]string, bool)
- returns information about recovering shards
-
New functions to operate on indices
OpenIndex(string)
- opens the index with the given index nameCloseIndex(string)
- closes the index with the given index name
-
New client configuration options
- user
- password
- protocol
- path
- skip TLS verification
-
Added Elasticsearch version to the
Node
struct asVersion
Bug fixes
- Two functions on the
Snapshot
struct to deal with in progress snapshots "ending" at 1970-01-01func (s *Snapshot) GetDuration()
func (s *Snapshot) GetEndTime()
Misc
- Added Go 1.12 to Travis testing