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

File diff suppressed because it is too large Load Diff

View File

@ -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"`

View File

@ -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[]

View File

@ -25,7 +25,7 @@
"1.0",
"0.90"
],
"default_api_branch": "0.90"
"default_api_branch": "1.0"
},
"devDependencies": {
"mocha": "~1.14.0",

View File

@ -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',

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';
}