From 4d77b2b022a9016c3a3e3488a571434ae96b9474 Mon Sep 17 00:00:00 2001 From: spalger Date: Wed, 30 Dec 2015 14:52:51 -0700 Subject: [PATCH] update apis --- docs/api_methods.asciidoc | 2 ++ docs/api_methods_2_0.asciidoc | 2 ++ src/lib/apis/2_0.js | 5 +++++ src/lib/apis/2_1.js | 5 +++++ src/lib/apis/2_x.js | 13 +++++++++++++ src/lib/apis/master.js | 13 +++++++++++++ 6 files changed, 40 insertions(+) diff --git a/docs/api_methods.asciidoc b/docs/api_methods.asciidoc index 955bb540f..9e36cbd8d 100644 --- a/docs/api_methods.asciidoc +++ b/docs/api_methods.asciidoc @@ -4084,6 +4084,8 @@ Options::: `Boolean` -- Whether to return time and byte values in human-readable format. `operationThreading`:: `Anything` -- TODO: ? +`verbose`:: +`Boolean` -- Includes detailed memory usage by Lucene. `index`:: `String, String[], Boolean` -- A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices diff --git a/docs/api_methods_2_0.asciidoc b/docs/api_methods_2_0.asciidoc index f8089bc2e..035c729f5 100644 --- a/docs/api_methods_2_0.asciidoc +++ b/docs/api_methods_2_0.asciidoc @@ -3977,6 +3977,8 @@ Options::: `Boolean` -- Whether to return time and byte values in human-readable format. `operationThreading`:: `Anything` -- TODO: ? +`verbose`:: +`Boolean` -- Includes detailed memory usage by Lucene. `index`:: `String, String[], Boolean` -- A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices diff --git a/src/lib/apis/2_0.js b/src/lib/apis/2_0.js index 5256cb0b9..5e01df4ea 100644 --- a/src/lib/apis/2_0.js +++ b/src/lib/apis/2_0.js @@ -3780,6 +3780,7 @@ api.indices.prototype.refresh = ca({ * @param {String} [params.expandWildcards=open] - Whether to expand wildcard expression to concrete indices that are open, closed or both. * @param {Boolean} params.human - Whether to return time and byte values in human-readable format. * @param {Anything} params.operationThreading - TODO: ? + * @param {Boolean} params.verbose - Includes detailed memory usage by Lucene. * @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.segments = ca({ @@ -3809,6 +3810,10 @@ api.indices.prototype.segments = ca({ }, operationThreading: { name: 'operation_threading' + }, + verbose: { + type: 'boolean', + 'default': false } }, urls: [ diff --git a/src/lib/apis/2_1.js b/src/lib/apis/2_1.js index 1d82dbe62..86979b3cf 100644 --- a/src/lib/apis/2_1.js +++ b/src/lib/apis/2_1.js @@ -3925,6 +3925,7 @@ api.indices.prototype.refresh = ca({ * @param {String} [params.expandWildcards=open] - Whether to expand wildcard expression to concrete indices that are open, closed or both. * @param {Boolean} params.human - Whether to return time and byte values in human-readable format. * @param {Anything} params.operationThreading - TODO: ? + * @param {Boolean} params.verbose - Includes detailed memory usage by Lucene. * @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.segments = ca({ @@ -3954,6 +3955,10 @@ api.indices.prototype.segments = ca({ }, operationThreading: { name: 'operation_threading' + }, + verbose: { + type: 'boolean', + 'default': false } }, urls: [ diff --git a/src/lib/apis/2_x.js b/src/lib/apis/2_x.js index e9acdeda3..12218eca3 100644 --- a/src/lib/apis/2_x.js +++ b/src/lib/apis/2_x.js @@ -2096,6 +2096,8 @@ api.indices = namespace(); * @param {Boolean} params.preferLocal - With `true`, specify that a local shard should be used if available, with `false`, use a random shard (default: true) * @param {String, String[], Boolean} params.text - The text on which the analysis should be performed (when request body is not used) * @param {String} params.tokenizer - The name of the tokenizer to use for the analysis + * @param {Boolean} params.detail - With `true`, outputs more advanced details. (default: false) + * @param {String, String[], Boolean} params.attributes - A comma-separated list of token attributes to output, this parameter works only with `detail=true` * @param {String} [params.format=detailed] - Format of the output */ api.indices.prototype.analyze = ca({ @@ -2126,6 +2128,12 @@ api.indices.prototype.analyze = ca({ tokenizer: { type: 'string' }, + detail: { + type: 'boolean' + }, + attributes: { + type: 'list' + }, format: { type: 'enum', 'default': 'detailed', @@ -3931,6 +3939,7 @@ api.indices.prototype.refresh = ca({ * @param {String} [params.expandWildcards=open] - Whether to expand wildcard expression to concrete indices that are open, closed or both. * @param {Boolean} params.human - Whether to return time and byte values in human-readable format. * @param {Anything} params.operationThreading - TODO: ? + * @param {Boolean} params.verbose - Includes detailed memory usage by Lucene. * @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.segments = ca({ @@ -3960,6 +3969,10 @@ api.indices.prototype.segments = ca({ }, operationThreading: { name: 'operation_threading' + }, + verbose: { + type: 'boolean', + 'default': false } }, urls: [ diff --git a/src/lib/apis/master.js b/src/lib/apis/master.js index 50ebee453..09c9b5f25 100644 --- a/src/lib/apis/master.js +++ b/src/lib/apis/master.js @@ -2096,6 +2096,8 @@ api.indices = namespace(); * @param {Boolean} params.preferLocal - With `true`, specify that a local shard should be used if available, with `false`, use a random shard (default: true) * @param {String, String[], Boolean} params.text - The text on which the analysis should be performed (when request body is not used) * @param {String} params.tokenizer - The name of the tokenizer to use for the analysis + * @param {Boolean} params.detail - With `true`, outputs more advanced details. (default: false) + * @param {String, String[], Boolean} params.attributes - A comma-separated list of token attributes to output, this parameter works only with `detail=true` * @param {String} [params.format=detailed] - Format of the output */ api.indices.prototype.analyze = ca({ @@ -2126,6 +2128,12 @@ api.indices.prototype.analyze = ca({ tokenizer: { type: 'string' }, + detail: { + type: 'boolean' + }, + attributes: { + type: 'list' + }, format: { type: 'enum', 'default': 'detailed', @@ -3861,6 +3869,7 @@ api.indices.prototype.refresh = ca({ * @param {String} [params.expandWildcards=open] - Whether to expand wildcard expression to concrete indices that are open, closed or both. * @param {Boolean} params.human - Whether to return time and byte values in human-readable format. * @param {Anything} params.operationThreading - TODO: ? + * @param {Boolean} params.verbose - Includes detailed memory usage by Lucene. * @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.segments = ca({ @@ -3890,6 +3899,10 @@ api.indices.prototype.segments = ca({ }, operationThreading: { name: 'operation_threading' + }, + verbose: { + type: 'boolean', + 'default': false } }, urls: [