[apis] regenerate

This commit is contained in:
spalger
2015-10-30 17:55:13 -05:00
parent df45a5d52e
commit 3f0bc01eae
7 changed files with 814 additions and 880 deletions

File diff suppressed because it is too large Load Diff

View File

@ -51,7 +51,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 ::: `'1.7'`
Default ::: `'2.0'`
Options in node :::
* `'2.1'`

View File

@ -22,10 +22,10 @@ include::development.asciidoc[]
include::api_methods_2_1.asciidoc[]
include::api_methods_2_0.asciidoc[]
include::api_methods.asciidoc[]
include::api_methods_1_7.asciidoc[]
include::api_methods_1_6.asciidoc[]
include::api_methods_1_5.asciidoc[]

View File

@ -1,7 +1,7 @@
module.exports = {
'2.1': require('./2_1'),
'_default': require('./2_0'),
'2.0': require('./2_0'),
'_default': require('./1_7'),
'1.7': require('./1_7'),
'1.6': require('./1_6'),
'1.5': require('./1_5')

View File

@ -1,7 +1,7 @@
module.exports = {
'2.1': require('./2_1'),
'_default': require('./2_0'),
'2.0': require('./2_0'),
'_default': require('./1_7'),
'1.7': require('./1_7'),
'1.6': require('./1_6'),
'1.5': require('./1_5'),

View File

@ -3462,76 +3462,6 @@ api.indices.prototype.open = ca({
method: 'POST'
});
/**
* Perform a [indices.optimize](http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-optimize.html) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {Boolean} params.flush - Specify whether the index should be flushed after performing the operation (default: true)
* @param {Boolean} params.ignoreUnavailable - Whether specified concrete indices should be ignored when unavailable (missing or closed)
* @param {Boolean} params.allowNoIndices - Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
* @param {String} [params.expandWildcards=open] - Whether to expand wildcard expression to concrete indices that are open, closed or both.
* @param {Number} params.maxNumSegments - The number of segments the index should be merged into (default: dynamic)
* @param {Boolean} params.onlyExpungeDeletes - Specify whether the operation should only expunge deleted documents
* @param {Anything} params.operationThreading - TODO: ?
* @param {Boolean} params.waitForMerge - Specify whether the request should block until the merge process is finished (default: true)
* @param {String, String[], Boolean} params.index - A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices
*/
api.indices.prototype.optimize = ca({
params: {
flush: {
type: 'boolean'
},
ignoreUnavailable: {
type: 'boolean',
name: 'ignore_unavailable'
},
allowNoIndices: {
type: 'boolean',
name: 'allow_no_indices'
},
expandWildcards: {
type: 'enum',
'default': 'open',
options: [
'open',
'closed',
'none',
'all'
],
name: 'expand_wildcards'
},
maxNumSegments: {
type: 'number',
name: 'max_num_segments'
},
onlyExpungeDeletes: {
type: 'boolean',
name: 'only_expunge_deletes'
},
operationThreading: {
name: 'operation_threading'
},
waitForMerge: {
type: 'boolean',
name: 'wait_for_merge'
}
},
urls: [
{
fmt: '/<%=index%>/_optimize',
req: {
index: {
type: 'list'
}
}
},
{
fmt: '/_optimize'
}
],
method: 'POST'
});
/**
* Perform a [indices.putAlias](http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html) request
*
@ -4847,7 +4777,8 @@ api.nodes.prototype.stats = ca({
'os',
'process',
'thread_pool',
'transport'
'transport',
'discovery'
]
},
indexMetric: {
@ -4892,7 +4823,8 @@ api.nodes.prototype.stats = ca({
'os',
'process',
'thread_pool',
'transport'
'transport',
'discovery'
]
}
}
@ -4912,7 +4844,8 @@ api.nodes.prototype.stats = ca({
'os',
'process',
'thread_pool',
'transport'
'transport',
'discovery'
]
},
indexMetric: {
@ -4962,7 +4895,8 @@ api.nodes.prototype.stats = ca({
'os',
'process',
'thread_pool',
'transport'
'transport',
'discovery'
]
}
}