enable scripting on master/1.x nodes, removed the indices.status() method from the master branch

This commit is contained in:
Spencer Alger
2014-04-29 14:41:11 -07:00
parent 5f10281d17
commit 3d2b080049
3 changed files with 2 additions and 105 deletions

View File

@ -3530,67 +3530,6 @@ api.indices.prototype.stats = ca({
]
});
/**
* Perform a [indices.status](http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/indices-status.html) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @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 {Boolean} params.human - Whether to return time and byte values in human-readable format.
* @param {Anything} params.operationThreading - TODO: ?
* @param {Boolean} params.recovery - Return information about shard recovery
* @param {Boolean} params.snapshot - TODO: ?
* @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.status = ca({
params: {
ignoreUnavailable: {
type: 'boolean',
name: 'ignore_unavailable'
},
allowNoIndices: {
type: 'boolean',
name: 'allow_no_indices'
},
expandWildcards: {
type: 'enum',
'default': 'open',
options: [
'open',
'closed'
],
name: 'expand_wildcards'
},
human: {
type: 'boolean',
'default': false
},
operationThreading: {
name: 'operation_threading'
},
recovery: {
type: 'boolean'
},
snapshot: {
type: 'boolean'
}
},
urls: [
{
fmt: '/<%=index%>/_status',
req: {
index: {
type: 'list'
}
}
},
{
fmt: '/_status'
}
]
});
/**
* Perform a [indices.updateAliases](http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/indices-aliases.html) request
*