* @param {Duration} params.ttl - Expiration time for the document
* @param {Number} params.version - Explicit version number for concurrency control
* @param {String} params.versionType - Specific version type
* @param {Boolean} params.detectNoop - Specifying as true will cause Elasticsearch to check if there are changes and, if there aren’t, turn the update request into a noop.
* @param {String} params.id - Document ID
* @param {String} params.index - The name of the index
* @param {String} params.type - The type of the document
* @param {Duration} params.ttl - Expiration time for the document
* @param {Number} params.version - Explicit version number for concurrency control
* @param {String} params.versionType - Specific version type
* @param {Boolean} params.detectNoop - Specifying as true will cause Elasticsearch to check if there are changes and, if there aren’t, turn the update request into a noop.
* @param {String} params.id - Document ID
* @param {String} params.index - The name of the index
* @param {String} params.type - The type of the document
* @param {Duration} params.ttl - Expiration time for the document
* @param {Number} params.version - Explicit version number for concurrency control
* @param {String} params.versionType - Specific version type
* @param {Boolean} params.detectNoop - Specifying as true will cause Elasticsearch to check if there are changes and, if there aren’t, turn the update request into a noop.
* @param {String} params.id - Document ID
* @param {String} params.index - The name of the index
* @param {String} params.type - The type of the document
* @param {Duration} params.ttl - Expiration time for the document
* @param {Number} params.version - Explicit version number for concurrency control
* @param {String} params.versionType - Specific version type
* @param {Boolean} params.detectNoop - Specifying as true will cause Elasticsearch to check if there are changes and, if there aren’t, turn the update request into a noop.
* @param {String} params.id - Document ID
* @param {String} params.index - The name of the index
* @param {String} params.type - The type of the document
* @param {Boolean} params.flatSettings - Return settings in flat format (default: false)
* @param {Boolean} params.local - Return local information, do not retrieve the state from master node (default: false)
* @param {Boolean} params.human - Whether to return version and creation date values in human-readable format.
* @param {Boolean} params.includeDefaults - Whether to return all default setting for each of the indices.
* @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
* @param {String, String[], Boolean} params.name - The name of the settings that should be included
* @param {Number} params.parentTask - Cancel tasks with specified parent task id. Set to -1 to cancel all.
* @param {String, String[], Boolean} params.nodeId - A comma-separated list of node IDs or names to limit the request; use `_local` to cancel only tasks on the node you're connecting to, leave empty to cancel tasks on all nodes
* @param {Number} params.taskId - Cancel the task with specified id
*/
api.tasks.prototype.cancel=ca({
params:{
actions:{
type:'list'
},
parentNode:{
type:'string',
name:'parent_node'
},
parentTask:{
type:'number',
name:'parent_task'
}
},
urls:[
{
fmt:'/_tasks/<%=nodeId%>/<%=taskId%>/_cancel',
req:{
nodeId:{
type:'list'
},
taskId:{
type:'number'
}
}
},
{
fmt:'/_tasks/<%=nodeId%>/_cancel',
req:{
nodeId:{
type:'list'
}
}
},
{
fmt:'/_tasks/_cancel'
}
],
method:'POST'
});
/**
* Perform a [tasks.list](http://www.elastic.co/guide/en/elasticsearch/reference/master/tasks-list.html) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {String, String[], Boolean} params.actions - A comma-separated list of actions that should be returned. Leave empty to return all.
* @param {Number} params.parentTask - Return tasks with specified parent task id. Set to -1 to return all.
* @param {String, String[], Boolean} params.nodeId - A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes
* @param {String, String[], Boolean} params.actions - A comma-separated list of actions that should be returned. Leave empty to return all.
* @param {Number} params.taskId - Return the task with specified id
* @param {Object} params - An object with parameters used to carry out this action
* @param {Boolean} params.termStatistics - Specifies if total term frequency and document frequency should be returned.
* @param {Boolean} [params.fieldStatistics=true] - Specifies if document count, sum of document frequencies and sum of total term frequencies should be returned.
* @param {Boolean} params.dfs - Specifies if distributed frequencies should be returned instead shard frequencies.
* @param {String, String[], Boolean} params.fields - A comma-separated list of fields to return.
* @param {Boolean} [params.offsets=true] - Specifies if term offsets should be returned.
* @param {Boolean} [params.positions=true] - Specifies if term positions should be returned.
@ -5803,11 +6067,6 @@ api.termvectors = ca({
required:false,
name:'field_statistics'
},
dfs:{
type:'boolean',
'default':false,
required:false
},
fields:{
type:'list',
required:false
@ -5906,7 +6165,6 @@ api.termvectors = ca({
* @param {Duration} params.ttl - Expiration time for the document
* @param {Number} params.version - Explicit version number for concurrency control
* @param {String} params.versionType - Specific version type
* @param {Boolean} params.detectNoop - Specifying as true will cause Elasticsearch to check if there are changes and, if there aren’t, turn the update request into a noop.
* @param {String} params.id - Document ID
* @param {String} params.index - The name of the index
* @param {String} params.type - The type of the document
@ -5967,10 +6225,6 @@ api.update = ca({
'force'
],
name:'version_type'
},
detectNoop:{
type:'boolean',
name:'detect_noop'
}
},
url:{
@ -6003,6 +6257,7 @@ api.update = ca({
* @param {Duration} params.ttl - Expiration time for the document
* @param {Number} params.version - Explicit version number for concurrency control
* @param {String} params.versionType - Specific version type
* @param {String} params.pipeline - The pipeline id to preprocess incoming documents with
* @param {String} params.id - Document ID
* @param {String} params.index - The name of the index
* @param {String} params.type - The type of the document
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.