API update
This commit is contained in:
@ -3292,7 +3292,7 @@ api.indices.prototype.optimize = ca({
|
|||||||
* @param {Object} params - An object with parameters used to carry out this action
|
* @param {Object} params - An object with parameters used to carry out this action
|
||||||
* @param {Date, Number} params.timeout - Explicit timestamp for the document
|
* @param {Date, Number} params.timeout - Explicit timestamp for the document
|
||||||
* @param {Date, Number} params.masterTimeout - Specify timeout for connection to master
|
* @param {Date, Number} params.masterTimeout - Specify timeout for connection to master
|
||||||
* @param {String, String[], Boolean} params.index - A comma-separated list of index names the alias should point to (supports wildcards); use `_all` or omit to perform the operation on all indices.
|
* @param {String, String[], Boolean} params.index - A comma-separated list of index names the alias should point to (supports wildcards); use `_all` to perform the operation on all indices.
|
||||||
* @param {String} params.name - The name of the alias to be created or updated
|
* @param {String} params.name - The name of the alias to be created or updated
|
||||||
*/
|
*/
|
||||||
api.indices.prototype.putAlias = ca({
|
api.indices.prototype.putAlias = ca({
|
||||||
@ -3305,8 +3305,7 @@ api.indices.prototype.putAlias = ca({
|
|||||||
name: 'master_timeout'
|
name: 'master_timeout'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
urls: [
|
url: {
|
||||||
{
|
|
||||||
fmt: '/<%=index%>/_alias/<%=name%>',
|
fmt: '/<%=index%>/_alias/<%=name%>',
|
||||||
req: {
|
req: {
|
||||||
index: {
|
index: {
|
||||||
@ -3317,15 +3316,6 @@ api.indices.prototype.putAlias = ca({
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
|
||||||
fmt: '/_alias/<%=name%>',
|
|
||||||
req: {
|
|
||||||
name: {
|
|
||||||
type: 'string'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
method: 'PUT'
|
method: 'PUT'
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user