Default API version is now 1.0
This commit is contained in:
@ -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';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user