From 7715b85f4e8ab1380e735787153e0e40591d3f28 Mon Sep 17 00:00:00 2001 From: spalger Date: Wed, 21 Oct 2015 09:08:42 -0500 Subject: [PATCH] [apis] regenerate --- docs/api_methods_2_1.asciidoc | 45 ++++++++++++++++++++++ src/lib/apis/2_1.js | 70 +++++++++++++++++++++++++++++++++++ src/lib/apis/2_x.js | 70 +++++++++++++++++++++++++++++++++++ src/lib/apis/master.js | 70 +++++++++++++++++++++++++++++++++++ 4 files changed, 255 insertions(+) diff --git a/docs/api_methods_2_1.asciidoc b/docs/api_methods_2_1.asciidoc index 56f772720..65996bfbd 100644 --- a/docs/api_methods_2_1.asciidoc +++ b/docs/api_methods_2_1.asciidoc @@ -3261,6 +3261,51 @@ Options::: link:#[back to top] +[[api-indices-forcemerge-2-1]] +=== `indices.forcemerge` + +[source,js] +-------- +client.indices.forcemerge([params, [callback]]) +-------- + +// no description + +The default method is `POST` and the usual <> apply. See http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-forcemerge.html[the elasticsearch docs] for more about this method. + +// no examples + + +*Params* + +[horizontal] +`flush`:: +`Boolean` -- Specify whether the index should be flushed after performing the operation (default: true) +`ignoreUnavailable`:: +`Boolean` -- Whether specified concrete indices should be ignored when unavailable (missing or closed) +`allowNoIndices`:: +`Boolean` -- Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified) +`[expandWildcards=open]`:: +`String` -- Whether to expand wildcard expression to concrete indices that are open, closed or both. +Options::: + * `"open"` + * `"closed"` + * `"none"` + * `"all"` + +`maxNumSegments`:: +`Number` -- The number of segments the index should be merged into (default: dynamic) +`onlyExpungeDeletes`:: +`Boolean` -- Specify whether the operation should only expunge deleted documents +`operationThreading`:: +`Anything` -- TODO: ? +`waitForMerge`:: +`Boolean` -- Specify whether the request should block until the merge process is finished (default: true) +`index`:: +`String, String[], Boolean` -- A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices + +link:#[back to top] + [[api-indices-get-2-1]] === `indices.get` diff --git a/src/lib/apis/2_1.js b/src/lib/apis/2_1.js index 844031546..de3d93b6e 100644 --- a/src/lib/apis/2_1.js +++ b/src/lib/apis/2_1.js @@ -2652,6 +2652,76 @@ api.indices.prototype.flushSynced = ca({ method: 'POST' }); +/** + * Perform a [indices.forcemerge](http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-forcemerge.html) request + * + * @param {Object} params - An object with parameters used to carry out this action + * @param {Boolean} params.flush - Specify whether the index should be flushed after performing the operation (default: true) + * @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 {Number} params.maxNumSegments - The number of segments the index should be merged into (default: dynamic) + * @param {Boolean} params.onlyExpungeDeletes - Specify whether the operation should only expunge deleted documents + * @param {Anything} params.operationThreading - TODO: ? + * @param {Boolean} params.waitForMerge - Specify whether the request should block until the merge process is finished (default: true) + * @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 + */ +api.indices.prototype.forcemerge = ca({ + params: { + flush: { + type: 'boolean' + }, + ignoreUnavailable: { + type: 'boolean', + name: 'ignore_unavailable' + }, + allowNoIndices: { + type: 'boolean', + name: 'allow_no_indices' + }, + expandWildcards: { + type: 'enum', + 'default': 'open', + options: [ + 'open', + 'closed', + 'none', + 'all' + ], + name: 'expand_wildcards' + }, + maxNumSegments: { + type: 'number', + name: 'max_num_segments' + }, + onlyExpungeDeletes: { + type: 'boolean', + name: 'only_expunge_deletes' + }, + operationThreading: { + name: 'operation_threading' + }, + waitForMerge: { + type: 'boolean', + name: 'wait_for_merge' + } + }, + urls: [ + { + fmt: '/<%=index%>/_forcemerge', + req: { + index: { + type: 'list' + } + } + }, + { + fmt: '/_forcemerge' + } + ], + method: 'POST' +}); + /** * Perform a [indices.get](http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-index.html) request * diff --git a/src/lib/apis/2_x.js b/src/lib/apis/2_x.js index 844031546..de3d93b6e 100644 --- a/src/lib/apis/2_x.js +++ b/src/lib/apis/2_x.js @@ -2652,6 +2652,76 @@ api.indices.prototype.flushSynced = ca({ method: 'POST' }); +/** + * Perform a [indices.forcemerge](http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-forcemerge.html) request + * + * @param {Object} params - An object with parameters used to carry out this action + * @param {Boolean} params.flush - Specify whether the index should be flushed after performing the operation (default: true) + * @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 {Number} params.maxNumSegments - The number of segments the index should be merged into (default: dynamic) + * @param {Boolean} params.onlyExpungeDeletes - Specify whether the operation should only expunge deleted documents + * @param {Anything} params.operationThreading - TODO: ? + * @param {Boolean} params.waitForMerge - Specify whether the request should block until the merge process is finished (default: true) + * @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 + */ +api.indices.prototype.forcemerge = ca({ + params: { + flush: { + type: 'boolean' + }, + ignoreUnavailable: { + type: 'boolean', + name: 'ignore_unavailable' + }, + allowNoIndices: { + type: 'boolean', + name: 'allow_no_indices' + }, + expandWildcards: { + type: 'enum', + 'default': 'open', + options: [ + 'open', + 'closed', + 'none', + 'all' + ], + name: 'expand_wildcards' + }, + maxNumSegments: { + type: 'number', + name: 'max_num_segments' + }, + onlyExpungeDeletes: { + type: 'boolean', + name: 'only_expunge_deletes' + }, + operationThreading: { + name: 'operation_threading' + }, + waitForMerge: { + type: 'boolean', + name: 'wait_for_merge' + } + }, + urls: [ + { + fmt: '/<%=index%>/_forcemerge', + req: { + index: { + type: 'list' + } + } + }, + { + fmt: '/_forcemerge' + } + ], + method: 'POST' +}); + /** * Perform a [indices.get](http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-index.html) request * diff --git a/src/lib/apis/master.js b/src/lib/apis/master.js index ac1e060db..207452576 100644 --- a/src/lib/apis/master.js +++ b/src/lib/apis/master.js @@ -2652,6 +2652,76 @@ api.indices.prototype.flushSynced = ca({ method: 'POST' }); +/** + * Perform a [indices.forcemerge](http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-forcemerge.html) request + * + * @param {Object} params - An object with parameters used to carry out this action + * @param {Boolean} params.flush - Specify whether the index should be flushed after performing the operation (default: true) + * @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 {Number} params.maxNumSegments - The number of segments the index should be merged into (default: dynamic) + * @param {Boolean} params.onlyExpungeDeletes - Specify whether the operation should only expunge deleted documents + * @param {Anything} params.operationThreading - TODO: ? + * @param {Boolean} params.waitForMerge - Specify whether the request should block until the merge process is finished (default: true) + * @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 + */ +api.indices.prototype.forcemerge = ca({ + params: { + flush: { + type: 'boolean' + }, + ignoreUnavailable: { + type: 'boolean', + name: 'ignore_unavailable' + }, + allowNoIndices: { + type: 'boolean', + name: 'allow_no_indices' + }, + expandWildcards: { + type: 'enum', + 'default': 'open', + options: [ + 'open', + 'closed', + 'none', + 'all' + ], + name: 'expand_wildcards' + }, + maxNumSegments: { + type: 'number', + name: 'max_num_segments' + }, + onlyExpungeDeletes: { + type: 'boolean', + name: 'only_expunge_deletes' + }, + operationThreading: { + name: 'operation_threading' + }, + waitForMerge: { + type: 'boolean', + name: 'wait_for_merge' + } + }, + urls: [ + { + fmt: '/<%=index%>/_forcemerge', + req: { + index: { + type: 'list' + } + } + }, + { + fmt: '/_forcemerge' + } + ], + method: 'POST' +}); + /** * Perform a [indices.get](http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-index.html) request *