[api] regenerate

This commit is contained in:
spalger
2016-10-26 17:52:54 -07:00
parent b526bb05e7
commit 6bff09108b
16 changed files with 25475 additions and 796 deletions

File diff suppressed because it is too large Load Diff

View File

@ -229,7 +229,7 @@ Options:::
`timestamp`::
`Date, Number` -- Explicit timestamp for the document
`ttl`::
`Duration` -- Expiration time for the document
`Date, Number` -- Expiration time for the document
`version`::
`Number` -- Explicit version number for concurrency control
`versionType`::
@ -713,7 +713,7 @@ Options:::
`timestamp`::
`Date, Number` -- Explicit timestamp for the document
`ttl`::
`Duration` -- Expiration time for the document
`Date, Number` -- Expiration time for the document
`version`::
`Number` -- Explicit version number for concurrency control
`versionType`::
@ -1105,7 +1105,7 @@ client.search({
[horizontal]
`scroll`::
`Duration` -- Specify how long a consistent view of the index should be maintained for scrolled search
`Date, Number` -- Specify how long a consistent view of the index should be maintained for scrolled search
`scrollId`::
`String` -- The scroll ID
@ -1203,7 +1203,7 @@ Options:::
`routing`::
`String, String[], Boolean` -- A comma-separated list of specific routing values
`scroll`::
`Duration` -- Specify how long a consistent view of the index should be maintained for scrolled search
`Date, Number` -- Specify how long a consistent view of the index should be maintained for scrolled search
`searchType`::
`String` -- Search operation type
Options:::
@ -1240,7 +1240,7 @@ Options:::
`suggestSize`::
`Number` -- How many suggestions to return in response
`suggestText`::
`Text` -- The source text for which the suggestions should be returned
`String` -- The source text for which the suggestions should be returned
`timeout`::
`Date, Number` -- Explicit operation timeout
`version`::
@ -1437,13 +1437,13 @@ Options:::
`routing`::
`String` -- Specific routing value
`script`::
`Anything` -- The URL-encoded script definition (instead of using request body)
`String` -- The URL-encoded script definition (instead of using request body)
`timeout`::
`Date, Number` -- Explicit operation timeout
`timestamp`::
`Date, Number` -- Explicit timestamp for the document
`ttl`::
`Duration` -- Expiration time for the document
`Date, Number` -- Expiration time for the document
`version`::
`Number` -- Explicit version number for concurrency control
`versionType`::

View File

@ -308,7 +308,7 @@ Options:::
`timestamp`::
`Date, Number` -- Explicit timestamp for the document
`ttl`::
`Duration` -- Expiration time for the document
`Date, Number` -- Expiration time for the document
`version`::
`Number` -- Explicit version number for concurrency control
`versionType`::
@ -987,7 +987,7 @@ Options:::
`timestamp`::
`Date, Number` -- Explicit timestamp for the document
`ttl`::
`Duration` -- Expiration time for the document
`Date, Number` -- Expiration time for the document
`version`::
`Number` -- Explicit version number for concurrency control
`versionType`::
@ -1295,8 +1295,6 @@ The default method is `POST` and the usual <<api-conventions,params and return v
`String` -- The index in which the document resides.
`type`::
`String` -- The type of the document.
`id`::
`String` -- The id of the document.
link:#[back to top]
@ -1584,7 +1582,7 @@ client.search({
[horizontal]
`scroll`::
`Duration` -- Specify how long a consistent view of the index should be maintained for scrolled search
`Date, Number` -- Specify how long a consistent view of the index should be maintained for scrolled search
`scrollId`::
`String` -- The scroll ID
@ -1688,7 +1686,7 @@ Options:::
`routing`::
`String, String[], Boolean` -- A comma-separated list of specific routing values
`scroll`::
`Duration` -- Specify how long a consistent view of the index should be maintained for scrolled search
`Date, Number` -- Specify how long a consistent view of the index should be maintained for scrolled search
`searchType`::
`String` -- Search operation type
Options:::
@ -1723,7 +1721,7 @@ Options:::
`suggestSize`::
`Number` -- How many suggestions to return in response
`suggestText`::
`Text` -- The source text for which the suggestions should be returned
`String` -- The source text for which the suggestions should be returned
`timeout`::
`Date, Number` -- Explicit operation timeout
`trackScores`::
@ -1878,7 +1876,7 @@ Options:::
`routing`::
`String, String[], Boolean` -- A comma-separated list of specific routing values
`scroll`::
`Duration` -- Specify how long a consistent view of the index should be maintained for scrolled search
`Date, Number` -- Specify how long a consistent view of the index should be maintained for scrolled search
`searchType`::
`String` -- Search operation type
Options:::
@ -2130,9 +2128,9 @@ Options:::
`routing`::
`String` -- Specific routing value
`script`::
`Anything` -- The URL-encoded script definition (instead of using request body)
`String` -- The URL-encoded script definition (instead of using request body)
`scriptId`::
`Anything` -- The id of a stored script
`String` -- The id of a stored script
`scriptedUpsert`::
`Boolean` -- True if the script referenced in script or script_id should be called to perform inserts - defaults to false
`timeout`::
@ -2140,7 +2138,7 @@ Options:::
`timestamp`::
`Date, Number` -- Explicit timestamp for the document
`ttl`::
`Duration` -- Expiration time for the document
`Date, Number` -- Expiration time for the document
`version`::
`Number` -- Explicit version number for concurrency control
`versionType`::

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -51,9 +51,11 @@ 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 ::: `'2.3'`
Default ::: `'5.0'`
Options in node :::
* `'5.0'`
* `'2.4'`
* `'2.3'`
* `'2.2'`
* `'2.1'`
@ -67,16 +69,16 @@ Options in node :::
* `'1.1'`
* `'1.0'`
* `'0.90'`
* `'2.4'` (unstable)
* `'5.x'` (unstable)
* `'master'` (unstable)
Options in the browser :::
* `'5.0'`
* `'2.4'`
* `'2.3'`
* `'2.2'`
* `'2.1'`
* `'2.0'`
* `'1.7'`
* `'2.4'` (unstable)
* `'5.x'` (unstable)
* `'master'` (unstable)

View File

@ -22,6 +22,10 @@ include::development.asciidoc[]
include::api_methods.asciidoc[]
include::api_methods_2_4.asciidoc[]
include::api_methods_2_3.asciidoc[]
include::api_methods_2_2.asciidoc[]
include::api_methods_2_1.asciidoc[]

View File

@ -18,8 +18,10 @@
"blanket": {
"pattern": "specified in test/unit/coverage.js"
},
"default_api_branch": "2.3",
"default_api_branch": "5.0",
"supported_es_branches": [
"5.0",
"2.4",
"2.3",
"2.2",
"2.1",
@ -35,7 +37,7 @@
"0.90"
],
"unstable_es_branches": [
"2.4",
"5.x",
"master"
]
},
@ -111,4 +113,4 @@
"engines": {
"node": ">=0.8"
}
}
}

View File

@ -1044,7 +1044,7 @@ api.getSource = ca({
* @param {String} params.routing - Specific routing value
* @param {Date, Number} params.timeout - Explicit operation timeout
* @param {Date, Number} params.timestamp - Explicit timestamp for the document
* @param {Duration} params.ttl - Expiration time for the document
* @param {Date, Number} 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.id - Document ID
@ -1097,7 +1097,7 @@ api.index = ca({
type: 'time'
},
ttl: {
type: 'duration'
type: 'time'
},
version: {
type: 'number'
@ -2871,13 +2871,13 @@ api.ping = ca({
* Perform a [scroll](http://www.elasticsearch.org/guide/en/elasticsearch/reference/0.90/search-request-scroll.html) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {Duration} params.scroll - Specify how long a consistent view of the index should be maintained for scrolled search
* @param {Date, Number} params.scroll - Specify how long a consistent view of the index should be maintained for scrolled search
* @param {String} params.scrollId - The scroll ID
*/
api.scroll = ca({
params: {
scroll: {
type: 'duration'
type: 'time'
},
scrollId: {
type: 'string',
@ -2919,7 +2919,7 @@ api.scroll = ca({
* @param {String} params.preference - Specify the node or shard the operation should be performed on (default: random)
* @param {String} params.q - Query in the Lucene query string syntax
* @param {String, String[], Boolean} params.routing - A comma-separated list of specific routing values
* @param {Duration} params.scroll - Specify how long a consistent view of the index should be maintained for scrolled search
* @param {Date, Number} params.scroll - Specify how long a consistent view of the index should be maintained for scrolled search
* @param {String} params.searchType - Search operation type
* @param {Number} params.size - Number of hits to return (default: 10)
* @param {String, String[], Boolean} params.sort - A comma-separated list of <field>:<direction> pairs
@ -2931,7 +2931,7 @@ api.scroll = ca({
* @param {String} params.suggestField - Specify which field to use for suggestions
* @param {String} [params.suggestMode=missing] - Specify suggest mode
* @param {Number} params.suggestSize - How many suggestions to return in response
* @param {Text} params.suggestText - The source text for which the suggestions should be returned
* @param {String} params.suggestText - The source text for which the suggestions should be returned
* @param {Date, Number} params.timeout - Explicit operation timeout
* @param {Boolean} params.version - Specify whether to return document version as part of a hit
* @param {String, String[], Boolean} params.index - A comma-separated list of index names to search; use `_all` or empty string to perform the operation on all indices
@ -2997,7 +2997,7 @@ api.search = ca({
type: 'list'
},
scroll: {
type: 'duration'
type: 'time'
},
searchType: {
type: 'enum',
@ -3053,7 +3053,7 @@ api.search = ca({
name: 'suggest_size'
},
suggestText: {
type: 'text',
type: 'string',
name: 'suggest_text'
},
timeout: {
@ -3150,10 +3150,10 @@ api.suggest = ca({
* @param {String} [params.replication=sync] - Specific replication type
* @param {Number} params.retryOnConflict - Specify how many times should the operation be retried when a conflict occurs (default: 0)
* @param {String} params.routing - Specific routing value
* @param {Anything} params.script - The URL-encoded script definition (instead of using request body)
* @param {String} params.script - The URL-encoded script definition (instead of using request body)
* @param {Date, Number} params.timeout - Explicit operation timeout
* @param {Date, Number} params.timestamp - Explicit timestamp for the document
* @param {Duration} params.ttl - Expiration time for the document
* @param {Date, Number} 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.id - Document ID
@ -3200,7 +3200,9 @@ api.update = ca({
routing: {
type: 'string'
},
script: {},
script: {
type: 'string'
},
timeout: {
type: 'time'
},
@ -3208,7 +3210,7 @@ api.update = ca({
type: 'time'
},
ttl: {
type: 'duration'
type: 'time'
},
version: {
type: 'number'
@ -3251,7 +3253,7 @@ api.update = ca({
* @param {String} params.routing - Specific routing value
* @param {Date, Number} params.timeout - Explicit operation timeout
* @param {Date, Number} params.timestamp - Explicit timestamp for the document
* @param {Duration} params.ttl - Expiration time for the document
* @param {Date, Number} 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.id - Document ID

View File

@ -1993,7 +1993,7 @@ api.getTemplate = ca({
* @param {String} params.routing - Specific routing value
* @param {Date, Number} params.timeout - Explicit operation timeout
* @param {Date, Number} params.timestamp - Explicit timestamp for the document
* @param {Duration} params.ttl - Expiration time for the document
* @param {Date, Number} 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.id - Document ID
@ -2043,7 +2043,7 @@ api.index = ca({
type: 'time'
},
ttl: {
type: 'duration'
type: 'time'
},
version: {
type: 'number'
@ -4614,7 +4614,6 @@ api.msearch = ca({
* @param {Boolean} params.realtime - Specifies if requests are real-time as opposed to near-real-time (default: true).
* @param {String} params.index - The index in which the document resides.
* @param {String} params.type - The type of the document.
* @param {String} params.id - The id of the document.
*/
api.mtermvectors = ca({
params: {
@ -5296,13 +5295,13 @@ api.putTemplate = ca({
* Perform a [scroll](http://www.elastic.co/guide/en/elasticsearch/reference/1.6/search-request-scroll.html) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {Duration} params.scroll - Specify how long a consistent view of the index should be maintained for scrolled search
* @param {Date, Number} params.scroll - Specify how long a consistent view of the index should be maintained for scrolled search
* @param {String} params.scrollId - The scroll ID
*/
api.scroll = ca({
params: {
scroll: {
type: 'duration'
type: 'time'
},
scrollId: {
type: 'string',
@ -5346,7 +5345,7 @@ api.scroll = ca({
* @param {String} params.preference - Specify the node or shard the operation should be performed on (default: random)
* @param {String} params.q - Query in the Lucene query string syntax
* @param {String, String[], Boolean} params.routing - A comma-separated list of specific routing values
* @param {Duration} params.scroll - Specify how long a consistent view of the index should be maintained for scrolled search
* @param {Date, Number} params.scroll - Specify how long a consistent view of the index should be maintained for scrolled search
* @param {String} params.searchType - Search operation type
* @param {Number} params.size - Number of hits to return (default: 10)
* @param {String, String[], Boolean} params.sort - A comma-separated list of <field>:<direction> pairs
@ -5357,7 +5356,7 @@ api.scroll = ca({
* @param {String} params.suggestField - Specify which field to use for suggestions
* @param {String} [params.suggestMode=missing] - Specify suggest mode
* @param {Number} params.suggestSize - How many suggestions to return in response
* @param {Text} params.suggestText - The source text for which the suggestions should be returned
* @param {String} params.suggestText - The source text for which the suggestions should be returned
* @param {Date, Number} params.timeout - Explicit operation timeout
* @param {Boolean} params.trackScores - Whether to calculate and return scores even if they are not used for sorting
* @param {Boolean} params.version - Specify whether to return document version as part of a hit
@ -5435,7 +5434,7 @@ api.search = ca({
type: 'list'
},
scroll: {
type: 'duration'
type: 'time'
},
searchType: {
type: 'enum',
@ -5488,7 +5487,7 @@ api.search = ca({
name: 'suggest_size'
},
suggestText: {
type: 'text',
type: 'string',
name: 'suggest_text'
},
timeout: {
@ -5721,7 +5720,7 @@ api.searchShards = ca({
* @param {String} [params.expandWildcards=open] - Whether to expand wildcard expression to concrete indices that are open, closed or both.
* @param {String} params.preference - Specify the node or shard the operation should be performed on (default: random)
* @param {String, String[], Boolean} params.routing - A comma-separated list of specific routing values
* @param {Duration} params.scroll - Specify how long a consistent view of the index should be maintained for scrolled search
* @param {Date, Number} params.scroll - Specify how long a consistent view of the index should be maintained for scrolled search
* @param {String} params.searchType - Search operation type
* @param {String, String[], 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 {String, String[], Boolean} params.type - A comma-separated list of document types to search; leave empty to perform the operation on all types
@ -5754,7 +5753,7 @@ api.searchTemplate = ca({
type: 'list'
},
scroll: {
type: 'duration'
type: 'time'
},
searchType: {
type: 'enum',
@ -6257,12 +6256,12 @@ api.termvector = ca({
* @param {String} [params.replication=sync] - Specific replication type
* @param {Number} params.retryOnConflict - Specify how many times should the operation be retried when a conflict occurs (default: 0)
* @param {String} params.routing - Specific routing value
* @param {Anything} params.script - The URL-encoded script definition (instead of using request body)
* @param {Anything} params.scriptId - The id of a stored script
* @param {String} params.script - The URL-encoded script definition (instead of using request body)
* @param {String} params.scriptId - The id of a stored script
* @param {Boolean} params.scriptedUpsert - True if the script referenced in script or script_id should be called to perform inserts - defaults to false
* @param {Date, Number} params.timeout - Explicit operation timeout
* @param {Date, Number} params.timestamp - Explicit timestamp for the document
* @param {Duration} params.ttl - Expiration time for the document
* @param {Date, Number} 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.id - Document ID
@ -6306,8 +6305,11 @@ api.update = ca({
routing: {
type: 'string'
},
script: {},
script: {
type: 'string'
},
scriptId: {
type: 'string',
name: 'script_id'
},
scriptedUpsert: {
@ -6321,7 +6323,7 @@ api.update = ca({
type: 'time'
},
ttl: {
type: 'duration'
type: 'time'
},
version: {
type: 'number'
@ -6363,7 +6365,7 @@ api.update = ca({
* @param {String} params.routing - Specific routing value
* @param {Date, Number} params.timeout - Explicit operation timeout
* @param {Date, Number} params.timestamp - Explicit timestamp for the document
* @param {Duration} params.ttl - Expiration time for the document
* @param {Date, Number} 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.id - Document ID

View File

@ -11,7 +11,7 @@ var ca = require('../client_action').makeFactoryWithModifier(function (spec) {
var namespace = require('../client_action').namespaceFactory;
var api = module.exports = {};
api._namespaces = ['cat', 'cluster', 'indices', 'nodes', 'reindex', 'snapshot', 'tasks'];
api._namespaces = ['cat', 'cluster', 'indices', 'nodes', 'snapshot', 'tasks'];
/**
* Perform a [bulk](http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-bulk.html) request
@ -1987,11 +1987,11 @@ api.getTemplate = ca({
* @param {Object} params - An object with parameters used to carry out this action
* @param {String} params.consistency - Explicit write consistency setting for the operation
* @param {String} params.parent - ID of the parent document
* @param {Boolean} params.refresh - Refresh the index after performing the operation
* @param {Boolean} params.refresh - Refresh the affected shards after performing the operation
* @param {String} params.routing - Specific routing value
* @param {Date, Number} params.timeout - Explicit operation timeout
* @param {Date, Number} params.timestamp - Explicit timestamp for the document
* @param {Duration} params.ttl - Expiration time for the document
* @param {Date, Number} 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.id - Document ID
@ -2033,7 +2033,7 @@ api.index = ca({
type: 'time'
},
ttl: {
type: 'duration'
type: 'time'
},
version: {
type: 'number'
@ -5224,8 +5224,6 @@ api.putTemplate = ca({
method: 'PUT'
});
api.reindex = namespace();
/**
* Perform a [reindex](https://www.elastic.co/guide/en/elasticsearch/plugins/master/plugins-reindex.html) request
*
@ -5234,7 +5232,7 @@ api.reindex = namespace();
* @param {Date, Number} [params.timeout=1m] - Time each individual bulk request should wait for shards that are unavailable.
* @param {String} params.consistency - Explicit write consistency setting for the operation
* @param {Boolean} params.waitForCompletion - Should the request should block until the reindex is complete.
* @param {Float} params.requestsPerSecond - The throttle for this request in sub-requests per second. 0 means set no throttle.
* @param {Number} params.requestsPerSecond - The throttle for this request in sub-requests per second. 0 means set no throttle.
*/
api.reindex = ca({
params: {
@ -5259,7 +5257,7 @@ api.reindex = ca({
name: 'wait_for_completion'
},
requestsPerSecond: {
type: 'float',
type: 'number',
'default': 0,
name: 'requests_per_second'
}
@ -5272,16 +5270,16 @@ api.reindex = ca({
});
/**
* Perform a [reindex.rethrottle](https://www.elastic.co/guide/en/elasticsearch/plugins/master/plugins-reindex.html) request
* Perform a [reindexRethrottle](https://www.elastic.co/guide/en/elasticsearch/reference/2.4/docs-reindex.html) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {Float} params.requestsPerSecond - The throttle to set on this request in sub-requests per second. 0 means set no throttle. As does "unlimited". Otherwise it must be a float.
* @param {Number} params.requestsPerSecond - The throttle to set on this request in sub-requests per second. 0 means set no throttle. As does "unlimited". Otherwise it must be a float.
* @param {String} params.taskId - The task id to rethrottle
*/
api.reindex.prototype.rethrottle = ca({
api.reindexRethrottle = ca({
params: {
requestsPerSecond: {
type: 'float',
type: 'number',
required: true,
name: 'requests_per_second'
}
@ -5324,13 +5322,13 @@ api.renderSearchTemplate = ca({
* Perform a [scroll](http://www.elastic.co/guide/en/elasticsearch/reference/master/search-request-scroll.html) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {Duration} params.scroll - Specify how long a consistent view of the index should be maintained for scrolled search
* @param {Date, Number} params.scroll - Specify how long a consistent view of the index should be maintained for scrolled search
* @param {String} params.scrollId - The scroll ID
*/
api.scroll = ca({
params: {
scroll: {
type: 'duration'
type: 'time'
},
scrollId: {
type: 'string',
@ -5374,7 +5372,7 @@ api.scroll = ca({
* @param {String} params.preference - Specify the node or shard the operation should be performed on (default: random)
* @param {String} params.q - Query in the Lucene query string syntax
* @param {String, String[], Boolean} params.routing - A comma-separated list of specific routing values
* @param {Duration} params.scroll - Specify how long a consistent view of the index should be maintained for scrolled search
* @param {Date, Number} params.scroll - Specify how long a consistent view of the index should be maintained for scrolled search
* @param {String} params.searchType - Search operation type
* @param {Number} params.size - Number of hits to return (default: 10)
* @param {String, String[], Boolean} params.sort - A comma-separated list of <field>:<direction> pairs
@ -5386,7 +5384,7 @@ api.scroll = ca({
* @param {String} params.suggestField - Specify which field to use for suggestions
* @param {String} [params.suggestMode=missing] - Specify suggest mode
* @param {Number} params.suggestSize - How many suggestions to return in response
* @param {Text} params.suggestText - The source text for which the suggestions should be returned
* @param {String} params.suggestText - The source text for which the suggestions should be returned
* @param {Date, Number} params.timeout - Explicit operation timeout
* @param {Boolean} params.trackScores - Whether to calculate and return scores even if they are not used for sorting
* @param {Boolean} params.version - Specify whether to return document version as part of a hit
@ -5464,7 +5462,7 @@ api.search = ca({
type: 'list'
},
scroll: {
type: 'duration'
type: 'time'
},
searchType: {
type: 'enum',
@ -5519,7 +5517,7 @@ api.search = ca({
name: 'suggest_size'
},
suggestText: {
type: 'text',
type: 'string',
name: 'suggest_text'
},
timeout: {
@ -5752,7 +5750,7 @@ api.searchShards = ca({
* @param {String} [params.expandWildcards=open] - Whether to expand wildcard expression to concrete indices that are open, closed or both.
* @param {String} params.preference - Specify the node or shard the operation should be performed on (default: random)
* @param {String, String[], Boolean} params.routing - A comma-separated list of specific routing values
* @param {Duration} params.scroll - Specify how long a consistent view of the index should be maintained for scrolled search
* @param {Date, Number} params.scroll - Specify how long a consistent view of the index should be maintained for scrolled search
* @param {String} params.searchType - Search operation type
* @param {String, String[], 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 {String, String[], Boolean} params.type - A comma-separated list of document types to search; leave empty to perform the operation on all types
@ -5785,7 +5783,7 @@ api.searchTemplate = ca({
type: 'list'
},
scroll: {
type: 'duration'
type: 'time'
},
searchType: {
type: 'enum',
@ -6406,12 +6404,12 @@ api.termvectors = ca({
* @param {Boolean} params.refresh - Refresh the index after performing the operation
* @param {Number} params.retryOnConflict - Specify how many times should the operation be retried when a conflict occurs (default: 0)
* @param {String} params.routing - Specific routing value
* @param {Anything} params.script - The URL-encoded script definition (instead of using request body)
* @param {Anything} params.scriptId - The id of a stored script
* @param {String} params.script - The URL-encoded script definition (instead of using request body)
* @param {String} params.scriptId - The id of a stored script
* @param {Boolean} params.scriptedUpsert - True if the script referenced in script or script_id should be called to perform inserts - defaults to false
* @param {Date, Number} params.timeout - Explicit operation timeout
* @param {Date, Number} params.timestamp - Explicit timestamp for the document
* @param {Duration} params.ttl - Expiration time for the document
* @param {Date, Number} 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.id - Document ID
@ -6447,8 +6445,11 @@ api.update = ca({
routing: {
type: 'string'
},
script: {},
script: {
type: 'string'
},
scriptId: {
type: 'string',
name: 'script_id'
},
scriptedUpsert: {
@ -6462,7 +6463,7 @@ api.update = ca({
type: 'time'
},
ttl: {
type: 'duration'
type: 'time'
},
version: {
type: 'number'
@ -6514,7 +6515,7 @@ api.update = ca({
* @param {String} params.preference - Specify the node or shard the operation should be performed on (default: random)
* @param {String} params.q - Query in the Lucene query string syntax
* @param {String, String[], Boolean} params.routing - A comma-separated list of specific routing values
* @param {Duration} params.scroll - Specify how long a consistent view of the index should be maintained for scrolled search
* @param {Date, Number} params.scroll - Specify how long a consistent view of the index should be maintained for scrolled search
* @param {String} params.searchType - Search operation type
* @param {Date, Number} params.searchTimeout - Explicit timeout for each search request. Defaults to no timeout.
* @param {Number} params.size - Number of hits to return (default: 10)
@ -6527,7 +6528,7 @@ api.update = ca({
* @param {String} params.suggestField - Specify which field to use for suggestions
* @param {String} [params.suggestMode=missing] - Specify suggest mode
* @param {Number} params.suggestSize - How many suggestions to return in response
* @param {Text} params.suggestText - The source text for which the suggestions should be returned
* @param {String} params.suggestText - The source text for which the suggestions should be returned
* @param {Date, Number} [params.timeout=1m] - Time each individual bulk request should wait for shards that are unavailable.
* @param {Boolean} params.trackScores - Whether to calculate and return scores even if they are not used for sorting
* @param {Boolean} params.version - Specify whether to return document version as part of a hit
@ -6535,9 +6536,9 @@ api.update = ca({
* @param {Boolean} params.requestCache - Specify if request cache should be used for this request or not, defaults to index level setting
* @param {Boolean} params.refresh - Should the effected indexes be refreshed?
* @param {String} params.consistency - Explicit write consistency setting for the operation
* @param {Integer} params.scrollSize - Size on the scroll request powering the update_by_query
* @param {Number} params.scrollSize - Size on the scroll request powering the update_by_query
* @param {Boolean} params.waitForCompletion - Should the request should block until the reindex is complete.
* @param {Float} params.requestsPerSecond - The throttle for this request in sub-requests per second. 0 means set no throttle.
* @param {Number} params.requestsPerSecond - The throttle for this request in sub-requests per second. 0 means set no throttle.
* @param {String, String[], 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 {String, String[], Boolean} params.type - A comma-separated list of document types to search; leave empty to perform the operation on all types
*/
@ -6619,7 +6620,7 @@ api.updateByQuery = ca({
type: 'list'
},
scroll: {
type: 'duration'
type: 'time'
},
searchType: {
type: 'enum',
@ -6676,7 +6677,7 @@ api.updateByQuery = ca({
name: 'suggest_size'
},
suggestText: {
type: 'text',
type: 'string',
name: 'suggest_text'
},
timeout: {
@ -6710,7 +6711,7 @@ api.updateByQuery = ca({
]
},
scrollSize: {
type: 'integer',
type: 'number',
name: 'scroll_size'
},
waitForCompletion: {
@ -6719,7 +6720,7 @@ api.updateByQuery = ca({
name: 'wait_for_completion'
},
requestsPerSecond: {
type: 'float',
type: 'number',
'default': 0,
name: 'requests_per_second'
}
@ -6754,11 +6755,11 @@ api.updateByQuery = ca({
* @param {Object} params - An object with parameters used to carry out this action
* @param {String} params.consistency - Explicit write consistency setting for the operation
* @param {String} params.parent - ID of the parent document
* @param {Boolean} params.refresh - Refresh the index after performing the operation
* @param {Boolean} params.refresh - Refresh the affected shards after performing the operation
* @param {String} params.routing - Specific routing value
* @param {Date, Number} params.timeout - Explicit operation timeout
* @param {Date, Number} params.timestamp - Explicit timestamp for the document
* @param {Duration} params.ttl - Expiration time for the document
* @param {Date, Number} 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.id - Document ID

7116
src/lib/apis/5_0.js Normal file

File diff suppressed because it is too large Load Diff

7160
src/lib/apis/5_x.js Normal file

File diff suppressed because it is too large Load Diff

View File

@ -1,10 +1,10 @@
module.exports = {
'_default': require('./2_3'),
'_default': require('./5_0'),
'5.0': require('./5_0'),
'2.4': require('./2_4'),
'2.3': require('./2_3'),
'2.2': require('./2_2'),
'2.1': require('./2_1'),
'2.0': require('./2_0'),
'1.7': require('./1_7'),
'2.4': require('./2_4'),
'5.x': require('./5_x'),
'master': require('./master')
};

View File

@ -1,5 +1,7 @@
module.exports = {
'_default': require('./2_3'),
'_default': require('./5_0'),
'5.0': require('./5_0'),
'2.4': require('./2_4'),
'2.3': require('./2_3'),
'2.2': require('./2_2'),
'2.1': require('./2_1'),
@ -13,6 +15,6 @@ module.exports = {
'1.1': require('./1_1'),
'1.0': require('./1_0'),
'0.90': require('./0_90'),
'2.4': require('./2_4'),
'5.x': require('./5_x'),
'master': require('./master')
};

File diff suppressed because it is too large Load Diff