Default API version is now 1.0

This commit is contained in:
Spencer Alger
2014-03-19 12:30:55 -07:00
parent bfa6c40157
commit 06648a84b4
7 changed files with 1986 additions and 1987 deletions

View File

@ -56,7 +56,7 @@ function Client(config) {
delete this._namespaces;
}
EsApiClient.prototype = _.funcEnum(config, 'apiVersion', Client.apis, '0.90');
EsApiClient.prototype = _.funcEnum(config, 'apiVersion', Client.apis, '1.0');
if (!config.sniffEndpoint && EsApiClient.prototype === Client.apis['0.90']) {
config.sniffEndpoint = '/_cluster/nodes';
}