diff --git a/docs/api_methods.asciidoc b/docs/api_methods.asciidoc index 8f9bfb3dc..d65957134 100644 --- a/docs/api_methods.asciidoc +++ b/docs/api_methods.asciidoc @@ -1427,10 +1427,19 @@ Options::: * `"open"` * `"closed"` +`percolateFormat`:: +`String` -- Return an array of matching query IDs instead of objects +Options::: + * `"ids"` + `percolateIndex`:: `String` -- The index to percolate the document into. Defaults to index. `percolateType`:: `String` -- The type to percolate document into. Defaults to type. +`percolateRouting`:: +`String` -- The routing value to use when percolating the existing document. +`percolatePreference`:: +`String` -- Which shard to prefer when executing the percolate request. `version`:: `Number` -- Explicit version number for concurrency control `versionType`:: diff --git a/src/lib/apis/1_4.js b/src/lib/apis/1_4.js index 016ffd3f2..f908b7c83 100644 --- a/src/lib/apis/1_4.js +++ b/src/lib/apis/1_4.js @@ -4762,8 +4762,11 @@ api.nodes.prototype.stats = ca({ * @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 {String} params.percolateFormat - Return an array of matching query IDs instead of objects * @param {String} params.percolateIndex - The index to percolate the document into. Defaults to index. * @param {String} params.percolateType - The type to percolate document into. Defaults to type. + * @param {String} params.percolateRouting - The routing value to use when percolating the existing document. + * @param {String} params.percolatePreference - Which shard to prefer when executing the percolate request. * @param {Number} params.version - Explicit version number for concurrency control * @param {String} params.versionType - Specific version type * @param {String} params.index - The index of the document being percolated. @@ -4795,6 +4798,13 @@ api.percolate = ca({ ], name: 'expand_wildcards' }, + percolateFormat: { + type: 'enum', + options: [ + 'ids' + ], + name: 'percolate_format' + }, percolateIndex: { type: 'string', name: 'percolate_index' @@ -4803,6 +4813,14 @@ api.percolate = ca({ type: 'string', name: 'percolate_type' }, + percolateRouting: { + type: 'string', + name: 'percolate_routing' + }, + percolatePreference: { + type: 'string', + name: 'percolate_preference' + }, version: { type: 'number' }, diff --git a/src/lib/apis/1_x.js b/src/lib/apis/1_x.js index 05e344f7a..d4bc0f130 100644 --- a/src/lib/apis/1_x.js +++ b/src/lib/apis/1_x.js @@ -4757,8 +4757,11 @@ api.nodes.prototype.stats = ca({ * @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 {String} params.percolateFormat - Return an array of matching query IDs instead of objects * @param {String} params.percolateIndex - The index to percolate the document into. Defaults to index. * @param {String} params.percolateType - The type to percolate document into. Defaults to type. + * @param {String} params.percolateRouting - The routing value to use when percolating the existing document. + * @param {String} params.percolatePreference - Which shard to prefer when executing the percolate request. * @param {Number} params.version - Explicit version number for concurrency control * @param {String} params.versionType - Specific version type * @param {String} params.index - The index of the document being percolated. @@ -4790,6 +4793,13 @@ api.percolate = ca({ ], name: 'expand_wildcards' }, + percolateFormat: { + type: 'enum', + options: [ + 'ids' + ], + name: 'percolate_format' + }, percolateIndex: { type: 'string', name: 'percolate_index' @@ -4798,6 +4808,14 @@ api.percolate = ca({ type: 'string', name: 'percolate_type' }, + percolateRouting: { + type: 'string', + name: 'percolate_routing' + }, + percolatePreference: { + type: 'string', + name: 'percolate_preference' + }, version: { type: 'number' }, diff --git a/src/lib/apis/master.js b/src/lib/apis/master.js index 941c0cdea..bd4bee595 100644 --- a/src/lib/apis/master.js +++ b/src/lib/apis/master.js @@ -4787,6 +4787,8 @@ api.nodes.prototype.stats = ca({ * @param {String} [params.expandWildcards=open] - Whether to expand wildcard expression to concrete indices that are open, closed or both. * @param {String} params.percolateIndex - The index to percolate the document into. Defaults to index. * @param {String} params.percolateType - The type to percolate document into. Defaults to type. + * @param {String} params.percolateRouting - The routing value to use when percolating the existing document. + * @param {String} params.percolatePreference - Which shard to prefer when executing the percolate request. * @param {String} params.percolateFormat - Return an array of matching query IDs instead of objects * @param {Number} params.version - Explicit version number for concurrency control * @param {String} params.versionType - Specific version type @@ -4827,6 +4829,14 @@ api.percolate = ca({ type: 'string', name: 'percolate_type' }, + percolateRouting: { + type: 'string', + name: 'percolate_routing' + }, + percolatePreference: { + type: 'string', + name: 'percolate_preference' + }, percolateFormat: { type: 'enum', options: [