Default API version is now 1.0
This commit is contained in:
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -47,7 +47,7 @@ Default in Node:::
|
||||
+
|
||||
WARNING: This default will track the latest version of Elasticsearch, and is only intended to be used during development. It is highly recommended that you set this parameter in all code that is headed to production.
|
||||
|
||||
Default ::: `"0.90"`
|
||||
Default ::: `"1.0"`
|
||||
|
||||
Options :::
|
||||
* `"master"`
|
||||
|
||||
@ -16,7 +16,7 @@ include::development.asciidoc[]
|
||||
|
||||
include::api_methods.asciidoc[]
|
||||
|
||||
include::api_methods_1_0.asciidoc[]
|
||||
include::api_methods_0_90.asciidoc[]
|
||||
|
||||
include::errors.asciidoc[]
|
||||
|
||||
|
||||
@ -25,7 +25,7 @@
|
||||
"1.0",
|
||||
"0.90"
|
||||
],
|
||||
"default_api_branch": "0.90"
|
||||
"default_api_branch": "1.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"mocha": "~1.14.0",
|
||||
|
||||
@ -26,7 +26,6 @@ var makeSamples = require('./samples').make;
|
||||
|
||||
var startingMoment = moment().utc().startOf('day').subtract('days', argv.days);
|
||||
var endingMoment = moment().utc().endOf('day').add('days', argv.days);
|
||||
|
||||
var clientConfig = {
|
||||
// log: {
|
||||
// level: 'trace',
|
||||
|
||||
@ -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