[apis] regenerate

This commit is contained in:
spalger
2018-01-31 11:57:47 -07:00
parent 30fef61fdb
commit 74a46c9678
11 changed files with 19509 additions and 315 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -52,9 +52,10 @@ 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 ::: `'6.0'`
Default ::: `'6.1'`
Options in node :::
* `'6.1'`
* `'6.0'`
* `'5.6'`
* `'5.5'`
@ -67,15 +68,17 @@ Options in node :::
* `'1.7'`
* `'0.90'`
* `'6.x'` (unstable)
* `'6.2'` (unstable)
* `'master'` (unstable)
Options in the browser :::
* `'6.1'`
* `'6.0'`
* `'5.6'`
* `'5.5'`
* `'5.4'`
* `'5.3'`
* `'6.x'` (unstable)
* `'6.2'` (unstable)
* `'master'` (unstable)

View File

@ -22,6 +22,8 @@ include::development.asciidoc[]
include::api_methods.asciidoc[]
include::api_methods_6_0.asciidoc[]
include::api_methods_5_6.asciidoc[]
include::api_methods_5_5.asciidoc[]

View File

@ -1745,8 +1745,6 @@ api.count = ca({
* @param {<<api-param-type-string,`String`>>} params.refresh - If `true` then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` (the default) then do nothing with refreshes.
* @param {<<api-param-type-string,`String`>>} params.routing - Specific routing value
* @param {<<api-param-type-duration-string,`DurationString`>>} params.timeout - Explicit operation timeout
* @param {<<api-param-type-duration-string,`DurationString`>>} params.timestamp - Explicit timestamp for the document
* @param {<<api-param-type-duration-string,`DurationString`>>} params.ttl - Expiration time for the document
* @param {<<api-param-type-number,`Number`>>} params.version - Explicit version number for concurrency control
* @param {<<api-param-type-string,`String`>>} params.versionType - Specific version type
* @param {<<api-param-type-string,`String`>>} params.pipeline - The pipeline id to preprocess incoming documents with
@ -1778,12 +1776,6 @@ api.create = ca({
timeout: {
type: 'time'
},
timestamp: {
type: 'time'
},
ttl: {
type: 'time'
},
version: {
type: 'number'
},
@ -2605,8 +2597,6 @@ api.getSource = ca({
* @param {<<api-param-type-string,`String`>>} params.refresh - If `true` then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` (the default) then do nothing with refreshes.
* @param {<<api-param-type-string,`String`>>} params.routing - Specific routing value
* @param {<<api-param-type-duration-string,`DurationString`>>} params.timeout - Explicit operation timeout
* @param {<<api-param-type-duration-string,`DurationString`>>} params.timestamp - Explicit timestamp for the document
* @param {<<api-param-type-duration-string,`DurationString`>>} params.ttl - Expiration time for the document
* @param {<<api-param-type-number,`Number`>>} params.version - Explicit version number for concurrency control
* @param {<<api-param-type-string,`String`>>} params.versionType - Specific version type
* @param {<<api-param-type-string,`String`>>} params.pipeline - The pipeline id to preprocess incoming documents with
@ -2647,12 +2637,6 @@ api.index = ca({
timeout: {
type: 'time'
},
timestamp: {
type: 'time'
},
ttl: {
type: 'time'
},
version: {
type: 'number'
},
@ -6694,8 +6678,6 @@ api.termvectors = ca({
* @param {<<api-param-type-number,`Number`>>} params.retryOnConflict - Specify how many times should the operation be retried when a conflict occurs (default: 0)
* @param {<<api-param-type-string,`String`>>} params.routing - Specific routing value
* @param {<<api-param-type-duration-string,`DurationString`>>} params.timeout - Explicit operation timeout
* @param {<<api-param-type-duration-string,`DurationString`>>} params.timestamp - Explicit timestamp for the document
* @param {<<api-param-type-duration-string,`DurationString`>>} params.ttl - Expiration time for the document
* @param {<<api-param-type-number,`Number`>>} params.version - Explicit version number for concurrency control
* @param {<<api-param-type-string,`String`>>} params.versionType - Specific version type
* @param {<<api-param-type-string,`String`>>} params.id - Document ID
@ -6747,12 +6729,6 @@ api.update = ca({
timeout: {
type: 'time'
},
timestamp: {
type: 'time'
},
ttl: {
type: 'time'
},
version: {
type: 'number'
},

7016
src/lib/apis/6_1.js Normal file

File diff suppressed because it is too large Load Diff

7042
src/lib/apis/6_2.js Normal file

File diff suppressed because it is too large Load Diff

View File

@ -1318,6 +1318,7 @@ api.cluster.prototype.getSettings = ca({
* @param {<<api-param-type-string,`String`>>} params.waitForNodes - Wait until the specified number of nodes is available
* @param {<<api-param-type-string,`String`>>} params.waitForEvents - Wait until all currently queued events with the given priority are processed
* @param {<<api-param-type-boolean,`Boolean`>>} params.waitForNoRelocatingShards - Whether to wait until there are no relocating shards in the cluster
* @param {<<api-param-type-boolean,`Boolean`>>} params.waitForNoInitializingShards - Whether to wait until there are no initializing shards in the cluster
* @param {<<api-param-type-string,`String`>>} params.waitForStatus - Wait until cluster is in a specific state
* @param {<<api-param-type-string,`String`>>, <<api-param-type-string-array,`String[]`>>, <<api-param-type-boolean,`Boolean`>>} params.index - Limit the information returned to a specific index
*/
@ -1366,6 +1367,10 @@ api.cluster.prototype.health = ca({
type: 'boolean',
name: 'wait_for_no_relocating_shards'
},
waitForNoInitializingShards: {
type: 'boolean',
name: 'wait_for_no_initializing_shards'
},
waitForStatus: {
type: 'enum',
'default': null,
@ -1746,8 +1751,6 @@ api.count = ca({
* @param {<<api-param-type-string,`String`>>} params.refresh - If `true` then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` (the default) then do nothing with refreshes.
* @param {<<api-param-type-string,`String`>>} params.routing - Specific routing value
* @param {<<api-param-type-duration-string,`DurationString`>>} params.timeout - Explicit operation timeout
* @param {<<api-param-type-duration-string,`DurationString`>>} params.timestamp - Explicit timestamp for the document
* @param {<<api-param-type-duration-string,`DurationString`>>} params.ttl - Expiration time for the document
* @param {<<api-param-type-number,`Number`>>} params.version - Explicit version number for concurrency control
* @param {<<api-param-type-string,`String`>>} params.versionType - Specific version type
* @param {<<api-param-type-string,`String`>>} params.pipeline - The pipeline id to preprocess incoming documents with
@ -1779,12 +1782,6 @@ api.create = ca({
timeout: {
type: 'time'
},
timestamp: {
type: 'time'
},
ttl: {
type: 'time'
},
version: {
type: 'number'
},
@ -2606,8 +2603,6 @@ api.getSource = ca({
* @param {<<api-param-type-string,`String`>>} params.refresh - If `true` then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` (the default) then do nothing with refreshes.
* @param {<<api-param-type-string,`String`>>} params.routing - Specific routing value
* @param {<<api-param-type-duration-string,`DurationString`>>} params.timeout - Explicit operation timeout
* @param {<<api-param-type-duration-string,`DurationString`>>} params.timestamp - Explicit timestamp for the document
* @param {<<api-param-type-duration-string,`DurationString`>>} params.ttl - Expiration time for the document
* @param {<<api-param-type-number,`Number`>>} params.version - Explicit version number for concurrency control
* @param {<<api-param-type-string,`String`>>} params.versionType - Specific version type
* @param {<<api-param-type-string,`String`>>} params.pipeline - The pipeline id to preprocess incoming documents with
@ -2648,12 +2643,6 @@ api.index = ca({
timeout: {
type: 'time'
},
timestamp: {
type: 'time'
},
ttl: {
type: 'time'
},
version: {
type: 'number'
},
@ -3343,7 +3332,6 @@ api.indices.prototype.flushSynced = ca({
* @param {<<api-param-type-string,`String`>>} [params.expandWildcards=open] - Whether to expand wildcard expression to concrete indices that are open, closed or both.
* @param {<<api-param-type-number,`Number`>>} params.maxNumSegments - The number of segments the index should be merged into (default: dynamic)
* @param {<<api-param-type-boolean,`Boolean`>>} params.onlyExpungeDeletes - Specify whether the operation should only expunge deleted documents
* @param {anything} params.operationThreading - TODO: ?
* @param {<<api-param-type-boolean,`Boolean`>>} params.waitForMerge - Specify whether the request should block until the merge process is finished (default: true)
* @param {<<api-param-type-string,`String`>>, <<api-param-type-string-array,`String[]`>>, <<api-param-type-boolean,`Boolean`>>} params.index - A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices
*/
@ -3379,9 +3367,6 @@ api.indices.prototype.forcemerge = ca({
type: 'boolean',
name: 'only_expunge_deletes'
},
operationThreading: {
name: 'operation_threading'
},
waitForMerge: {
type: 'boolean',
name: 'wait_for_merge'
@ -4266,7 +4251,6 @@ api.indices.prototype.rollover = ca({
* @param {<<api-param-type-boolean,`Boolean`>>} params.ignoreUnavailable - Whether specified concrete indices should be ignored when unavailable (missing or closed)
* @param {<<api-param-type-boolean,`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 {<<api-param-type-string,`String`>>} [params.expandWildcards=open] - Whether to expand wildcard expression to concrete indices that are open, closed or both.
* @param {anything} params.operationThreading - TODO: ?
* @param {<<api-param-type-boolean,`Boolean`>>} params.verbose - Includes detailed memory usage by Lucene.
* @param {<<api-param-type-string,`String`>>, <<api-param-type-string-array,`String[]`>>, <<api-param-type-boolean,`Boolean`>>} params.index - A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices
*/
@ -4291,9 +4275,6 @@ api.indices.prototype.segments = ca({
],
name: 'expand_wildcards'
},
operationThreading: {
name: 'operation_threading'
},
verbose: {
type: 'boolean',
'default': false
@ -4322,7 +4303,6 @@ api.indices.prototype.segments = ca({
* @param {<<api-param-type-boolean,`Boolean`>>} params.ignoreUnavailable - Whether specified concrete indices should be ignored when unavailable (missing or closed)
* @param {<<api-param-type-boolean,`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 {<<api-param-type-string,`String`>>} [params.expandWildcards=open] - Whether to expand wildcard expression to concrete indices that are open, closed or both.
* @param {anything} params.operationThreading - TODO: ?
* @param {<<api-param-type-string,`String`>>, <<api-param-type-string-array,`String[]`>>, <<api-param-type-boolean,`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.shardStores = ca({
@ -4354,9 +4334,6 @@ api.indices.prototype.shardStores = ca({
'all'
],
name: 'expand_wildcards'
},
operationThreading: {
name: 'operation_threading'
}
},
urls: [
@ -4657,7 +4634,6 @@ api.indices.prototype.upgrade = ca({
* @param {<<api-param-type-boolean,`Boolean`>>} params.ignoreUnavailable - Whether specified concrete indices should be ignored when unavailable (missing or closed)
* @param {<<api-param-type-boolean,`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 {<<api-param-type-string,`String`>>} [params.expandWildcards=open] - Whether to expand wildcard expression to concrete indices that are open, closed or both.
* @param {anything} params.operationThreading - TODO: ?
* @param {<<api-param-type-string,`String`>>} params.q - Query in the Lucene query string syntax
* @param {<<api-param-type-string,`String`>>} params.analyzer - The analyzer to use for the query string
* @param {<<api-param-type-boolean,`Boolean`>>} params.analyzeWildcard - Specify whether wildcard and prefix queries should be analyzed (default: false)
@ -4693,9 +4669,6 @@ api.indices.prototype.validateQuery = ca({
],
name: 'expand_wildcards'
},
operationThreading: {
name: 'operation_threading'
},
q: {
type: 'string'
},
@ -5664,6 +5637,42 @@ api.putScript = ca({
method: 'PUT'
});
/**
* Perform a [rankEval](https://www.elastic.co/guide/en/elasticsearch/reference/6.x/docs-rank-eval.html) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {<<api-param-type-string,`String`>>, <<api-param-type-string-array,`String[]`>>, <<api-param-type-boolean,`Boolean`>>} params.index - A comma-separated list of index names to search; use `_all` or empty string to perform the operation on all indices
* @param {<<api-param-type-string,`String`>>, <<api-param-type-string-array,`String[]`>>, <<api-param-type-boolean,`Boolean`>>} params.type - A comma-separated list of document types to search; leave empty to perform the operation on all types
*/
api.rankEval = ca({
urls: [
{
fmt: '/<%=index%>/<%=type%>/_rank_eval',
req: {
index: {
type: 'list'
},
type: {
type: 'list'
}
}
},
{
fmt: '/<%=index%>/_rank_eval',
req: {
index: {
type: 'list'
}
}
},
{
fmt: '/_rank_eval'
}
],
needBody: true,
method: 'POST'
});
/**
* Perform a [reindex](https://www.elastic.co/guide/en/elasticsearch/reference/6.x/docs-reindex.html) request
*
@ -6601,7 +6610,8 @@ api.tasks.prototype.list = ca({
'default': 'nodes',
options: [
'nodes',
'parents'
'parents',
'none'
],
name: 'group_by'
}
@ -6739,8 +6749,6 @@ api.termvectors = ca({
* @param {<<api-param-type-number,`Number`>>} params.retryOnConflict - Specify how many times should the operation be retried when a conflict occurs (default: 0)
* @param {<<api-param-type-string,`String`>>} params.routing - Specific routing value
* @param {<<api-param-type-duration-string,`DurationString`>>} params.timeout - Explicit operation timeout
* @param {<<api-param-type-duration-string,`DurationString`>>} params.timestamp - Explicit timestamp for the document
* @param {<<api-param-type-duration-string,`DurationString`>>} params.ttl - Expiration time for the document
* @param {<<api-param-type-number,`Number`>>} params.version - Explicit version number for concurrency control
* @param {<<api-param-type-string,`String`>>} params.versionType - Specific version type
* @param {<<api-param-type-string,`String`>>} params.id - Document ID
@ -6792,12 +6800,6 @@ api.update = ca({
timeout: {
type: 'time'
},
timestamp: {
type: 'time'
},
ttl: {
type: 'time'
},
version: {
type: 'number'
},

View File

@ -1,10 +1,11 @@
module.exports = {
'_default': require('./6_0'),
'_default': require('./6_1'),
'6.1': require('./6_1'),
'6.0': require('./6_0'),
'5.6': require('./5_6'),
'5.5': require('./5_5'),
'5.4': require('./5_4'),
'5.3': require('./5_3'),
'6.x': require('./6_x'),
'6.2': require('./6_2'),
'master': require('./master')
};

View File

@ -1,5 +1,6 @@
module.exports = {
get '_default'() { return require('./6_0'); },
get '_default'() { return require('./6_1'); },
get '6.1'() { return require('./6_1'); },
get '6.0'() { return require('./6_0'); },
get '5.6'() { return require('./5_6'); },
get '5.5'() { return require('./5_5'); },
@ -12,5 +13,6 @@ module.exports = {
get '1.7'() { return require('./1_7'); },
get '0.90'() { return require('./0_90'); },
get '6.x'() { return require('./6_x'); },
get '6.2'() { return require('./6_2'); },
get 'master'() { return require('./master'); },
};

View File

@ -1318,6 +1318,7 @@ api.cluster.prototype.getSettings = ca({
* @param {<<api-param-type-string,`String`>>} params.waitForNodes - Wait until the specified number of nodes is available
* @param {<<api-param-type-string,`String`>>} params.waitForEvents - Wait until all currently queued events with the given priority are processed
* @param {<<api-param-type-boolean,`Boolean`>>} params.waitForNoRelocatingShards - Whether to wait until there are no relocating shards in the cluster
* @param {<<api-param-type-boolean,`Boolean`>>} params.waitForNoInitializingShards - Whether to wait until there are no initializing shards in the cluster
* @param {<<api-param-type-string,`String`>>} params.waitForStatus - Wait until cluster is in a specific state
* @param {<<api-param-type-string,`String`>>, <<api-param-type-string-array,`String[]`>>, <<api-param-type-boolean,`Boolean`>>} params.index - Limit the information returned to a specific index
*/
@ -1366,6 +1367,10 @@ api.cluster.prototype.health = ca({
type: 'boolean',
name: 'wait_for_no_relocating_shards'
},
waitForNoInitializingShards: {
type: 'boolean',
name: 'wait_for_no_initializing_shards'
},
waitForStatus: {
type: 'enum',
'default': null,
@ -1746,8 +1751,6 @@ api.count = ca({
* @param {<<api-param-type-string,`String`>>} params.refresh - If `true` then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` (the default) then do nothing with refreshes.
* @param {<<api-param-type-string,`String`>>} params.routing - Specific routing value
* @param {<<api-param-type-duration-string,`DurationString`>>} params.timeout - Explicit operation timeout
* @param {<<api-param-type-duration-string,`DurationString`>>} params.timestamp - Explicit timestamp for the document
* @param {<<api-param-type-duration-string,`DurationString`>>} params.ttl - Expiration time for the document
* @param {<<api-param-type-number,`Number`>>} params.version - Explicit version number for concurrency control
* @param {<<api-param-type-string,`String`>>} params.versionType - Specific version type
* @param {<<api-param-type-string,`String`>>} params.pipeline - The pipeline id to preprocess incoming documents with
@ -1779,12 +1782,6 @@ api.create = ca({
timeout: {
type: 'time'
},
timestamp: {
type: 'time'
},
ttl: {
type: 'time'
},
version: {
type: 'number'
},
@ -2606,8 +2603,6 @@ api.getSource = ca({
* @param {<<api-param-type-string,`String`>>} params.refresh - If `true` then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` (the default) then do nothing with refreshes.
* @param {<<api-param-type-string,`String`>>} params.routing - Specific routing value
* @param {<<api-param-type-duration-string,`DurationString`>>} params.timeout - Explicit operation timeout
* @param {<<api-param-type-duration-string,`DurationString`>>} params.timestamp - Explicit timestamp for the document
* @param {<<api-param-type-duration-string,`DurationString`>>} params.ttl - Expiration time for the document
* @param {<<api-param-type-number,`Number`>>} params.version - Explicit version number for concurrency control
* @param {<<api-param-type-string,`String`>>} params.versionType - Specific version type
* @param {<<api-param-type-string,`String`>>} params.pipeline - The pipeline id to preprocess incoming documents with
@ -2648,12 +2643,6 @@ api.index = ca({
timeout: {
type: 'time'
},
timestamp: {
type: 'time'
},
ttl: {
type: 'time'
},
version: {
type: 'number'
},
@ -2884,7 +2873,6 @@ api.indices.prototype.close = ca({
* @param {<<api-param-type-string,`String`>>} params.waitForActiveShards - Set the number of active shards to wait for before the operation returns.
* @param {<<api-param-type-duration-string,`DurationString`>>} params.timeout - Explicit operation timeout
* @param {<<api-param-type-duration-string,`DurationString`>>} params.masterTimeout - Specify timeout for connection to master
* @param {<<api-param-type-boolean,`Boolean`>>} params.updateAllTypes - Whether to update the mapping for all fields with the same name across all types or not
* @param {<<api-param-type-string,`String`>>} params.index - The name of the index
*/
api.indices.prototype.create = ca({
@ -2899,10 +2887,6 @@ api.indices.prototype.create = ca({
masterTimeout: {
type: 'time',
name: 'master_timeout'
},
updateAllTypes: {
type: 'boolean',
name: 'update_all_types'
}
},
url: {
@ -3343,7 +3327,6 @@ api.indices.prototype.flushSynced = ca({
* @param {<<api-param-type-string,`String`>>} [params.expandWildcards=open] - Whether to expand wildcard expression to concrete indices that are open, closed or both.
* @param {<<api-param-type-number,`Number`>>} params.maxNumSegments - The number of segments the index should be merged into (default: dynamic)
* @param {<<api-param-type-boolean,`Boolean`>>} params.onlyExpungeDeletes - Specify whether the operation should only expunge deleted documents
* @param {anything} params.operationThreading - TODO: ?
* @param {<<api-param-type-boolean,`Boolean`>>} params.waitForMerge - Specify whether the request should block until the merge process is finished (default: true)
* @param {<<api-param-type-string,`String`>>, <<api-param-type-string-array,`String[]`>>, <<api-param-type-boolean,`Boolean`>>} params.index - A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices
*/
@ -3379,9 +3362,6 @@ api.indices.prototype.forcemerge = ca({
type: 'boolean',
name: 'only_expunge_deletes'
},
operationThreading: {
name: 'operation_threading'
},
waitForMerge: {
type: 'boolean',
name: 'wait_for_merge'
@ -3955,7 +3935,6 @@ api.indices.prototype.putAlias = ca({
* @param {<<api-param-type-boolean,`Boolean`>>} params.ignoreUnavailable - Whether specified concrete indices should be ignored when unavailable (missing or closed)
* @param {<<api-param-type-boolean,`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 {<<api-param-type-string,`String`>>} [params.expandWildcards=open] - Whether to expand wildcard expression to concrete indices that are open, closed or both.
* @param {<<api-param-type-boolean,`Boolean`>>} params.updateAllTypes - Whether to update the mapping for all fields with the same name across all types or not
* @param {<<api-param-type-string,`String`>>, <<api-param-type-string-array,`String[]`>>, <<api-param-type-boolean,`Boolean`>>} params.index - A comma-separated list of index names the mapping should be added to (supports wildcards); use `_all` or omit to add the mapping on all indices.
* @param {<<api-param-type-string,`String`>>} params.type - The name of the document type
*/
@ -3986,10 +3965,6 @@ api.indices.prototype.putMapping = ca({
'all'
],
name: 'expand_wildcards'
},
updateAllTypes: {
type: 'boolean',
name: 'update_all_types'
}
},
urls: [
@ -4266,7 +4241,6 @@ api.indices.prototype.rollover = ca({
* @param {<<api-param-type-boolean,`Boolean`>>} params.ignoreUnavailable - Whether specified concrete indices should be ignored when unavailable (missing or closed)
* @param {<<api-param-type-boolean,`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 {<<api-param-type-string,`String`>>} [params.expandWildcards=open] - Whether to expand wildcard expression to concrete indices that are open, closed or both.
* @param {anything} params.operationThreading - TODO: ?
* @param {<<api-param-type-boolean,`Boolean`>>} params.verbose - Includes detailed memory usage by Lucene.
* @param {<<api-param-type-string,`String`>>, <<api-param-type-string-array,`String[]`>>, <<api-param-type-boolean,`Boolean`>>} params.index - A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices
*/
@ -4291,9 +4265,6 @@ api.indices.prototype.segments = ca({
],
name: 'expand_wildcards'
},
operationThreading: {
name: 'operation_threading'
},
verbose: {
type: 'boolean',
'default': false
@ -4322,7 +4293,6 @@ api.indices.prototype.segments = ca({
* @param {<<api-param-type-boolean,`Boolean`>>} params.ignoreUnavailable - Whether specified concrete indices should be ignored when unavailable (missing or closed)
* @param {<<api-param-type-boolean,`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 {<<api-param-type-string,`String`>>} [params.expandWildcards=open] - Whether to expand wildcard expression to concrete indices that are open, closed or both.
* @param {anything} params.operationThreading - TODO: ?
* @param {<<api-param-type-string,`String`>>, <<api-param-type-string-array,`String[]`>>, <<api-param-type-boolean,`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.shardStores = ca({
@ -4354,9 +4324,6 @@ api.indices.prototype.shardStores = ca({
'all'
],
name: 'expand_wildcards'
},
operationThreading: {
name: 'operation_threading'
}
},
urls: [
@ -4657,7 +4624,6 @@ api.indices.prototype.upgrade = ca({
* @param {<<api-param-type-boolean,`Boolean`>>} params.ignoreUnavailable - Whether specified concrete indices should be ignored when unavailable (missing or closed)
* @param {<<api-param-type-boolean,`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 {<<api-param-type-string,`String`>>} [params.expandWildcards=open] - Whether to expand wildcard expression to concrete indices that are open, closed or both.
* @param {anything} params.operationThreading - TODO: ?
* @param {<<api-param-type-string,`String`>>} params.q - Query in the Lucene query string syntax
* @param {<<api-param-type-string,`String`>>} params.analyzer - The analyzer to use for the query string
* @param {<<api-param-type-boolean,`Boolean`>>} params.analyzeWildcard - Specify whether wildcard and prefix queries should be analyzed (default: false)
@ -4693,9 +4659,6 @@ api.indices.prototype.validateQuery = ca({
],
name: 'expand_wildcards'
},
operationThreading: {
name: 'operation_threading'
},
q: {
type: 'string'
},
@ -5664,6 +5627,42 @@ api.putScript = ca({
method: 'PUT'
});
/**
* Perform a [rankEval](https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-rank-eval.html) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {<<api-param-type-string,`String`>>, <<api-param-type-string-array,`String[]`>>, <<api-param-type-boolean,`Boolean`>>} params.index - A comma-separated list of index names to search; use `_all` or empty string to perform the operation on all indices
* @param {<<api-param-type-string,`String`>>, <<api-param-type-string-array,`String[]`>>, <<api-param-type-boolean,`Boolean`>>} params.type - A comma-separated list of document types to search; leave empty to perform the operation on all types
*/
api.rankEval = ca({
urls: [
{
fmt: '/<%=index%>/<%=type%>/_rank_eval',
req: {
index: {
type: 'list'
},
type: {
type: 'list'
}
}
},
{
fmt: '/<%=index%>/_rank_eval',
req: {
index: {
type: 'list'
}
}
},
{
fmt: '/_rank_eval'
}
],
needBody: true,
method: 'POST'
});
/**
* Perform a [reindex](https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-reindex.html) request
*
@ -5831,6 +5830,7 @@ api.scroll = ca({
* @param {<<api-param-type-duration-string,`DurationString`>>} params.timeout - Explicit operation timeout
* @param {<<api-param-type-boolean,`Boolean`>>} params.trackScores - Whether to calculate and return scores even if they are not used for sorting
* @param {<<api-param-type-boolean,`Boolean`>>} params.trackTotalHits - Indicate if the number of documents that match the query should be tracked
* @param {<<api-param-type-boolean,`Boolean`>>} [params.allowPartialSearchResults=true] - Indicate if an error should be returned if there is a partial search failure or timeout
* @param {<<api-param-type-boolean,`Boolean`>>} params.typedKeys - Specify whether aggregation and suggester names should be prefixed by their respective types in the response
* @param {<<api-param-type-boolean,`Boolean`>>} params.version - Specify whether to return document version as part of a hit
* @param {<<api-param-type-boolean,`Boolean`>>} params.requestCache - Specify if request cache should be used for this request or not, defaults to index level setting
@ -5974,6 +5974,11 @@ api.search = ca({
type: 'boolean',
name: 'track_total_hits'
},
allowPartialSearchResults: {
type: 'boolean',
'default': true,
name: 'allow_partial_search_results'
},
typedKeys: {
type: 'boolean',
name: 'typed_keys'
@ -6601,7 +6606,8 @@ api.tasks.prototype.list = ca({
'default': 'nodes',
options: [
'nodes',
'parents'
'parents',
'none'
],
name: 'group_by'
}
@ -6739,8 +6745,6 @@ api.termvectors = ca({
* @param {<<api-param-type-number,`Number`>>} params.retryOnConflict - Specify how many times should the operation be retried when a conflict occurs (default: 0)
* @param {<<api-param-type-string,`String`>>} params.routing - Specific routing value
* @param {<<api-param-type-duration-string,`DurationString`>>} params.timeout - Explicit operation timeout
* @param {<<api-param-type-duration-string,`DurationString`>>} params.timestamp - Explicit timestamp for the document
* @param {<<api-param-type-duration-string,`DurationString`>>} params.ttl - Expiration time for the document
* @param {<<api-param-type-number,`Number`>>} params.version - Explicit version number for concurrency control
* @param {<<api-param-type-string,`String`>>} params.versionType - Specific version type
* @param {<<api-param-type-string,`String`>>} params.id - Document ID
@ -6792,12 +6796,6 @@ api.update = ca({
timeout: {
type: 'time'
},
timestamp: {
type: 'time'
},
ttl: {
type: 'time'
},
version: {
type: 'number'
},