@opensearch-project/opensearch 2.3.1 → 2.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -11,11 +11,61 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
11
11
  ### Fixed
12
12
  ### Security
13
13
 
14
- ## [2.3.1]
14
+ ## [2.5.0]
15
15
  ### Added
16
+ - Added deprecation warnings for Index Template APIs ([654](https://github.com/opensearch-project/opensearch-js/pull/645))
17
+ - Added `http` functions: `connect`, `delete`, `get`, `head`, `options`, `patch`, `post`, `put`, and `trace` ([#649](https://github.com/opensearch-project/opensearch-js/pull/649))
18
+ - Added `samples/search.js` and updated `guides/search.md` to provide example to search functionality ([#656](https://github.com/opensearch-project/opensearch-js/pull/656))
19
+ - Added `samples/msearch.js` and `guides/msearch.md` to provide example to multi-search functionality ([#657](https://github.com/opensearch-project/opensearch-js/pull/657))
20
+ - Updated `guides/index_lifecycle.md` to provide example of `ignore_unavailable: true` while deleting indices. ([665](https://github.com/opensearch-project/opensearch-js/pull/665))
21
+ - Add expiration buffer to prevent credentials to expire earlier than request may finish in case AWS SDK v3 is used. ([678](https://github.com/opensearch-project/opensearch-js/pull/678))
16
22
  ### Dependencies
23
+ - Bumps `@aws-sdk/types` from 3.418.0 to 3.451.0
24
+ - Bumps `@types/node` from 20.6.5 to 20.9.0
25
+ - Bumps `eslint` from 8.50.0 to 8.54.0
26
+ - Bumps `@babel/traverse` from 7.15.0 to 7.23.2
27
+ - Bumps `eslint-plugin-prettier` from 5.0.0 to 5.0.1
28
+ - Bumps `react-devtools-core` from 4.25.0 to 4.28.4
29
+ - Bumps `simple-git` from 3.20.0 to 3.21.0
30
+ - Bumps `prettier` from 3.0.3 to 3.1.0
31
+ - Bumps `@babel/eslint-parser` from 7.22.15 to 7.23.3
32
+ - Bumps `@types/node` from 20.9.0 to 20.10.7
33
+ - Bumps `eslint` from 8.54.0 to 8.56.0
34
+ - Bumps `@aws-sdk/types` from 3.451.0 to 3.485.0
35
+ - Bumps `prettier` from 3.1.0 to 3.1.1
36
+ - Bumps `eslint-plugin-prettier` from 5.0.1 to 5.1.2
37
+ - Bumps `eslint-config-prettier` from 9.0.0 to 9.1.0
38
+ - Bumps `ora` from 7.0.1 to 8.0.1
39
+ - Bumps `simple-git` from 3.21.0 to 3.22.0
17
40
  ### Changed
18
- - Made the new Long Number logic added in 2.3.0 optional and disabled by default ([561](https://github.com/opensearch-project/opensearch-js/pull/561)
41
+ ### Deprecated
42
+ ### Removed
43
+ - Removed fixture lines that git-secrets wrongly flagged as passwords/secrets ([654](https://github.com/opensearch-project/opensearch-js/pull/645))
44
+ ### Fixed
45
+ - Add new types to `package.json` exports configuration for ESM support ([#674](https://github.com/opensearch-project/opensearch-js/pull/674))
46
+ ### Security
47
+
48
+ ## [2.4.0]
49
+ ### Added
50
+ - Added Security API ([#606](https://github.com/opensearch-project/opensearch-js/pull/606))
51
+ - Documentation for edge-case in Sigv4Signer ([#622](https://github.com/opensearch-project/opensearch-js/pull/622))
52
+ ### Dependencies
53
+ - Bumps `rimraf` from 5.0.0 to 5.0.5
54
+ - Bumps `eslint` from 8.41.0 to 8.50.0
55
+ - Bumps `dedent` from 0.7.0 to 1.5.1
56
+ - Bumps `@types/node` from 20.2.5 to 20.6.5
57
+ - Bumps `@aws-sdk/types` from 3.341.0 to 3.418.0
58
+ - Bumps `@babel/eslint-parser` from 7.21.8 to 7.22.15
59
+ - Bumps `prettier` from 2.8.8 to 3.0.3
60
+ - Bumps `eslint-plugin-prettier` from 4.0.0 to 5.0.0
61
+ - Bumps `node-fetch` from 3.3.1 to 3.3.2
62
+ - Bumps `tap` from 16.3.4 to 16.3.8
63
+ - Bumps `eslint-config-prettier` from 8.8.0 to 9.0.0
64
+ - Bumps `ora` from 6.3.1 to 7.0.1
65
+ - Bumps `simple-git` from 3.18.0 to 3.20.0
66
+ ### Changed
67
+ - Make handling of long numerals an option that is disabled by default ([#557](https://github.com/opensearch-project/opensearch-js/pull/557))
68
+ - Add `enableLongNumeralSupport` to the type definition for `ClientOptions` ([#598](https://github.com/opensearch-project/opensearch-js/pull/598))
19
69
  ### Deprecated
20
70
  ### Removed
21
71
  ### Fixed
@@ -24,17 +74,26 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
24
74
  ## [2.3.0]
25
75
 
26
76
  ### Added
27
-
28
77
  - Add serialization and deserialization of numerals larger than `Number.MAX_SAFE_INTEGER` ([#544](https://github.com/opensearch-project/opensearch-js/pull/544))
29
-
30
78
  ### Dependencies
79
+ - Bumps `prettier` from 2.8.7 to 2.8.8
80
+ - Bumps `ora` from 6.1.2 to 6.3.1
81
+ - Bumps `@types/node` from 18.15.11 to 20.2.5
82
+ - Bumps `eslint` from 8.38.0 to 8.41.0
83
+ - Bumps `xmlbuilder2` from 3.0.2 to 3.1.1
84
+ - Bumps `simple-git` from 3.17.0 to 3.18.0
85
+ - Bumps `@babel/eslint-parser` from 7.21.3 to 7.21.8
86
+ - Bumps `@aws-sdk/types` from 3.257.0 to 3.341.0
87
+ - Bumps `semver` from 7.3.8 to 7.5.1
88
+ - Bumps `node-fetch` from 3.2.10 to 3.3.1
31
89
  ### Changed
32
-
90
+ - Implemented Docker Image caching for `integration-unreleased` workflow ([#387](https://github.com/opensearch-project/opensearch-js/issues/387))
33
91
  - Add upgrading NPM to all workflows running older Node.js versions ([#545](https://github.com/opensearch-project/opensearch-js/issues/545))
34
-
92
+ - Upgrade and secure the backport workflow ([#547](https://github.com/opensearch-project/opensearch-js/issues/547))
35
93
  ### Deprecated
36
94
  ### Removed
37
95
  ### Fixed
96
+ - Fixed malformed `bundler.yml` ([#497](https://github.com/opensearch-project/opensearch-js/pull/497))
38
97
  ### Security
39
98
 
40
99
  ## [2.2.1]
@@ -161,9 +220,4 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
161
220
 
162
221
  ### Fixed
163
222
 
164
- - Fix mutability of connection headers ([#291](https://github.com/opensearch-project/opensearch-js/issues/291))
165
-
166
- [2.1.0]: https://github.com/opensearch-project/opensearch-js/releases/tag/2.1.0
167
- [2.2.0]: https://github.com/opensearch-project/opensearch-js/releases/tag/2.2.0
168
- [2.3.0]: https://github.com/opensearch-project/opensearch-js/releases/tag/2.3.0
169
- [Unreleased]: https://github.com/opensearch-project/opensearch-js/compare/2.3.0...HEAD
223
+ - Fix mutability of connection headers ([#291](https://github.com/opensearch-project/opensearch-js/issues/291))
package/COMPATIBILITY.md CHANGED
@@ -1,27 +1,13 @@
1
- - [Compatibility with OpenSearch](#compatibility-with-opensearch)
2
- - [Upgrading](#upgrading)
1
+ # Compatibility with OpenSearch
3
2
 
4
- ## Compatibility with OpenSearch
3
+ The below matrix shows the compatibility of the [`opensearch-js`](https://www.npmjs.com/package/@opensearch-project/opensearch) with versions of [`OpenSearch`](https://opensearch.org/downloads.html#opensearch). In the vast majority of cases, a minor version upgrade of the OpenSearch Server does not affect how your application's existing features interact with the cluster via the JavaScript client. However, such an upgrade can introduce new endpoints that your current version of the client does not support. In this case, you must upgrade the client to the version shown in the table below (or higher) to use the new endpoints.
5
4
 
6
- The below matrix shows the compatibility of the [`opensearch-js`](https://www.npmjs.com/package/@opensearch-project/opensearch) with versions of [`OpenSearch`](https://opensearch.org/downloads.html#opensearch).
5
+ If your Server Version is higher than those listed in the table below, you should use the newest client. If the newest client still does not support the endpoint you need, please open an issue and let us know.
7
6
 
8
- | OpenSearch Version | Client Version |
9
- | ------------------ | -------------- |
10
- | 1.0.0 | 1.0.0 |
11
- | 1.0.1 | 1.0.0 |
12
- | 1.1.0 | 1.1.0 |
13
- | 1.2.0 | 1.1.0 |
14
- | 1.2.1 | 1.1.0 |
15
- | 1.2.2 | 1.1.0 |
16
- | 1.2.3 | 1.1.0 |
17
- | 1.2.4 | 1.1.0 |
18
- | 1.3.0 | 1.1.0 |
19
- | 1.3.1 | 1.1.0 |
20
- | 1.3.2 | 1.1.0 |
21
- | 1.3.3 | 1.1.0 |
22
- | 2.0.0 | 2.0.0 |
23
- | 2.0.1 | 2.0.0 |
7
+ | Server Version | Client Version |
8
+ |----------------|----------------|
9
+ | 1.x | 1.x |
10
+ | 2.x | 2.x |
24
11
 
25
12
  ## Upgrading
26
-
27
- Major versions of OpenSearch introduce breaking changes that require careful upgrades of the client. While `opensearch-js` 2.0.0 works against the latest OpenSearch 1.x, certain deprecated features removed in OpenSearch 2.0 have also been removed from the client. Please refer to the [OpenSearch documentation](https://opensearch.org/docs/latest/clients/index/) for more information.
13
+ Major versions of OpenSearch introduce breaking changes that require careful upgrades of the client. While `opensearch-js` 2.x works against the latest OpenSearch 1.x, certain deprecated features removed in OpenSearch 2.0 have also been removed from the client. Please refer to the [OpenSearch documentation](https://opensearch.org/docs/latest/clients/index/) for more information.
package/MAINTAINERS.md CHANGED
@@ -8,15 +8,16 @@ This document contains a list of maintainers in this repo. See [opensearch-proje
8
8
  |-----------------------|-----------------------------------------------|-------------|
9
9
  | Anan Zhuang | [ananzh](https://github.com/ananzh) | Amazon |
10
10
  | Kawika (Rocky) Avilla | [kavilla](https://github.com/kavilla) | Amazon |
11
- | Sean Neumann | [seanneumann](https://github.com/seanneumann) | Amazon |
12
11
  | Daniel Doubrovkine | [dblock](https://github.com/dblock) | Amazon |
13
12
  | Vacha Shah | [VachaShah](https://github.com/VachaShah) | Amazon |
14
13
  | Theo Truong | [nhtruong](https://github.com/nhtruong) | Amazon |
15
14
  | Harsha Vamsi Kalluri | [harshavamsi](https://github.com/harshavamsi) | Amazon |
15
+ | Timur Bolotov | [timursaurus](https://github.com/timursaurus) | |
16
16
 
17
17
  ## Emeritus
18
18
 
19
- | Maintainer | GitHub ID | Affiliation |
20
- |---------------|-------------------------------------------|-------------|
21
- | Bishoy Boktor | [boktorbb](https://github.com/boktorbb) | Amazon |
22
- | Mihir Soni | [mihirsoni](https://github.com/mihirsoni) | Amazon |
19
+ | Maintainer | GitHub ID | Affiliation |
20
+ |---------------|-----------------------------------------------|-------------|
21
+ | Bishoy Boktor | [boktorbb](https://github.com/boktorbb) | Amazon |
22
+ | Mihir Soni | [mihirsoni](https://github.com/mihirsoni) | Amazon |
23
+ | Sean Neumann | [seanneumann](https://github.com/seanneumann) | Amazon |
package/USER_GUIDE.md CHANGED
@@ -5,12 +5,17 @@
5
5
  - [Authenticate with Amazon OpenSearch Service](#authenticate-with-amazon-opensearch-service)
6
6
  - [Using AWS V2 SDK](#using-aws-v2-sdk)
7
7
  - [Using AWS V3 SDK](#using-aws-v3-sdk)
8
- - [Enable Handling of Long Numerals](#enable-handling-of-long-numerals)
8
+ - [Enable Handling of Long Numerals](#enable-handling-of-long-numerals)
9
9
  - [Create an Index](#create-an-index)
10
10
  - [Add a Document to the Index](#add-a-document-to-the-index)
11
11
  - [Search for the Document](#search-for-the-document)
12
+ - [Multi-Search (msearch)](#multi-search-msearch)
12
13
  - [Delete the document](#delete-the-document)
13
14
  - [Delete the index](#delete-the-index)
15
+ - [Create a Point in Time](#create-a-point-in-time)
16
+ - [Get all PITs](#get-all-pits)
17
+ - [Delete a Point in Time](#delete-a-point-in-time)
18
+ - [Delete all PITs](#delete-all-pits)
14
19
  - [Empty all Pool Connections](#empty-all-pool-connections)
15
20
 
16
21
  ## Initializing a Client
@@ -65,6 +70,7 @@ const client = new Client({
65
70
  getCredentials: () =>
66
71
  new Promise((resolve, reject) => {
67
72
  // Any other method to acquire a new Credentials object can be used.
73
+ // If you use profiles, make sure to pass role assumer, or use default provider fromNodeProviderChain
68
74
  AWS.config.getCredentials((err, credentials) => {
69
75
  if (err) {
70
76
  reject(err);
@@ -93,8 +99,8 @@ const client = new Client({
93
99
  // Must return a Promise that resolve to an AWS.Credentials object.
94
100
  // This function is used to acquire the credentials when the client start and
95
101
  // when the credentials are expired.
96
- // The Client will refresh the Credentials only when they are expired.
97
- // With AWS SDK V2, Credentials.refreshPromise is used when available to refresh the credentials.
102
+ // The Client will treat the Credentials as expired if within
103
+ // `requestTimeout` ms of expiration (default is 30000 ms).
98
104
 
99
105
  // Example with AWS SDK V3:
100
106
  getCredentials: () => {
@@ -103,6 +109,7 @@ const client = new Client({
103
109
  return credentialsProvider();
104
110
  },
105
111
  }),
112
+ requestTimeout: 60000, // Also used for refreshing credentials in advance
106
113
  node: 'https://search-xxx.region.es.amazonaws.com', // OpenSearch domain URL
107
114
  // node: "https://xxx.region.aoss.amazonaws.com" for OpenSearch Serverless
108
115
  });
@@ -193,6 +200,30 @@ var response = await client.search({
193
200
  console.log(response.body.hits);
194
201
  ```
195
202
 
203
+ ## Multi-Search (msearch)
204
+
205
+ ```javascript
206
+ const queries = [
207
+ {},
208
+ { query: { match: { author: 'Stephen King' } } },
209
+ {},
210
+ { query: { match: { title: 'The Outsider' } } },
211
+ ];
212
+
213
+ const multiSearchResponse = await client.msearch({
214
+ index: index_name,
215
+ body: queries,
216
+ });
217
+
218
+ multiSearchResponse.body.responses.map((res) =>
219
+ res.hits.hits.map((movie) => {
220
+ console.log(movie._source);
221
+ })
222
+ );
223
+ ```
224
+
225
+ Explore `msearch` further with a detailed guide in [msearch.md](guides/msearch.md) and find sample code in [msearch.js](samples/msearch.js).
226
+
196
227
  ## Delete the document
197
228
 
198
229
  ```javascript
@@ -0,0 +1,213 @@
1
+ /*
2
+ * Copyright OpenSearch Contributors
3
+ * SPDX-License-Identifier: Apache-2.0
4
+ *
5
+ * The OpenSearch Contributors require contributions made to
6
+ * this file be licensed under the Apache-2.0 license or a
7
+ * compatible open source license.
8
+ *
9
+ */
10
+
11
+ 'use strict';
12
+
13
+ /** @namespace API-HTTP */
14
+
15
+ const { normalizeArguments, kConfigurationError } = require('../utils');
16
+
17
+ function HttpApi(transport, ConfigurationError) {
18
+ this.transport = transport;
19
+ this[kConfigurationError] = ConfigurationError;
20
+ }
21
+
22
+ HttpApi.prototype.request = function (method, params, options, callback) {
23
+ [params, options, callback] = normalizeArguments(params, options, callback);
24
+ if (Array.isArray(params.body)) {
25
+ const { path, querystring, headers, body } = params;
26
+ params = { path, querystring, headers, bulkBody: body };
27
+ }
28
+ options = options || {};
29
+ options.headers = params.headers || options.headers;
30
+ return this.transport.request({ ...params, method }, options, callback);
31
+ };
32
+
33
+ /**
34
+ * Make a customized CONNECT request.
35
+ *
36
+ * @memberOf API-HTTP
37
+ *
38
+ * @param {Object} params
39
+ * @param {Object} params.path - The URL of the request
40
+ * @param {Object} [params.querystring] - The querystring parameters
41
+ * @param {Object} [params.headers] - The request headers
42
+ * @param {Object} [params.body] - The request body
43
+ *
44
+ * @param {Object} [options] - Options for {@link Transport#request}
45
+ * @param {function} [callback] - Callback that handles errors and response
46
+ *
47
+ * @returns {{abort: function(), then: function(), catch: function()}|Promise<never>|*}
48
+ */
49
+ HttpApi.prototype.connect = function (params, options, callback) {
50
+ return this.request('CONNECT', params, options, callback);
51
+ };
52
+
53
+ /**
54
+ * Make a customized DELETE request.
55
+ *
56
+ * @memberOf API-HTTP
57
+ *
58
+ * @param {Object} params
59
+ * @param {Object} params.path - The URL of the request
60
+ * @param {Object} [params.querystring] - The querystring parameters
61
+ * @param {Object} [params.headers] - The request headers
62
+ * @param {Object} [params.body] - The request body
63
+ *
64
+ * @param {Object} [options] - Options for {@link Transport#request}
65
+ * @param {function} [callback] - Callback that handles errors and response
66
+ *
67
+ * @returns {{abort: function(), then: function(), catch: function()}|Promise<never>|*}
68
+ */
69
+ HttpApi.prototype.delete = function (params, options, callback) {
70
+ return this.request('DELETE', params, options, callback);
71
+ };
72
+
73
+ /**
74
+ * Make a customized GET request.
75
+ *
76
+ * @memberOf API-HTTP
77
+ *
78
+ * @param {Object} params
79
+ * @param {Object} params.path - The URL of the request
80
+ * @param {Object} [params.querystring] - The querystring parameters
81
+ * @param {Object} [params.headers] - The request headers
82
+ * @param {Object} [params.body] - The request body
83
+ *
84
+ * @param {Object} [options] - Options for {@link Transport#request}
85
+ * @param {function} [callback] - Callback that handles errors and response
86
+ *
87
+ * @returns {{abort: function(), then: function(), catch: function()}|Promise<never>|*}
88
+ */
89
+ HttpApi.prototype.get = function (params, options, callback) {
90
+ return this.request('GET', params, options, callback);
91
+ };
92
+
93
+ /**
94
+ * Make a customized HEAD request.
95
+ *
96
+ * @memberOf API-HTTP
97
+ *
98
+ * @param {Object} params
99
+ * @param {Object} params.path - The URL of the request
100
+ * @param {Object} [params.querystring] - The querystring parameters
101
+ * @param {Object} [params.headers] - The request headers
102
+ * @param {Object} [params.body] - The request body
103
+ *
104
+ * @param {Object} [options] - Options for {@link Transport#request}
105
+ * @param {function} [callback] - Callback that handles errors and response
106
+ *
107
+ * @returns {{abort: function(), then: function(), catch: function()}|Promise<never>|*}
108
+ */
109
+ HttpApi.prototype.head = function (params, options, callback) {
110
+ return this.request('HEAD', params, options, callback);
111
+ };
112
+
113
+ /**
114
+ * Make a customized OPTIONS request.
115
+ *
116
+ * @memberOf API-HTTP
117
+ *
118
+ * @param {Object} params
119
+ * @param {Object} params.path - The URL of the request
120
+ * @param {Object} [params.querystring] - The querystring parameters
121
+ * @param {Object} [params.headers] - The request headers
122
+ * @param {Object} [params.body] - The request body
123
+ *
124
+ * @param {Object} [options] - Options for {@link Transport#request}
125
+ * @param {function} [callback] - Callback that handles errors and response
126
+ *
127
+ * @returns {{abort: function(), then: function(), catch: function()}|Promise<never>|*}
128
+ */
129
+ HttpApi.prototype.options = function (params, options, callback) {
130
+ return this.request('OPTIONS', params, options, callback);
131
+ };
132
+
133
+ /**
134
+ * Make a customized PATCH request.
135
+ *
136
+ * @memberOf API-HTTP
137
+ *
138
+ * @param {Object} params
139
+ * @param {Object} params.path - The URL of the request
140
+ * @param {Object} [params.querystring] - The querystring parameters
141
+ * @param {Object} [params.headers] - The request headers
142
+ * @param {Object} [params.body] - The request body
143
+ *
144
+ * @param {Object} [options] - Options for {@link Transport#request}
145
+ * @param {function} [callback] - Callback that handles errors and response
146
+ *
147
+ * @returns {{abort: function(), then: function(), catch: function()}|Promise<never>|*}
148
+ */
149
+ HttpApi.prototype.patch = function (params, options, callback) {
150
+ return this.request('PATCH', params, options, callback);
151
+ };
152
+
153
+ /**
154
+ * Make a customized POST request.
155
+ *
156
+ * @memberOf API-HTTP
157
+ *
158
+ * @param {Object} params
159
+ * @param {Object} params.path - The URL of the request
160
+ * @param {Object} [params.querystring] - The querystring parameters
161
+ * @param {Object} [params.headers] - The request headers
162
+ * @param {Object} [params.body] - The request body
163
+ *
164
+ * @param {Object} [options] - Options for {@link Transport#request}
165
+ * @param {function} [callback] - Callback that handles errors and response
166
+ *
167
+ * @returns {{abort: function(), then: function(), catch: function()}|Promise<never>|*}
168
+ */
169
+ HttpApi.prototype.post = function (params, options, callback) {
170
+ return this.request('POST', params, options, callback);
171
+ };
172
+
173
+ /**
174
+ * Make a customized PUT request.
175
+ *
176
+ * @memberOf API-HTTP
177
+ *
178
+ * @param {Object} params
179
+ * @param {Object} params.path - The URL of the request
180
+ * @param {Object} [params.querystring] - The querystring parameters
181
+ * @param {Object} [params.headers] - The request headers
182
+ * @param {Object} [params.body] - The request body
183
+ *
184
+ * @param {Object} [options] - Options for {@link Transport#request}
185
+ * @param {function} [callback] - Callback that handles errors and response
186
+ *
187
+ * @returns {{abort: function(), then: function(), catch: function()}|Promise<never>|*}
188
+ */
189
+ HttpApi.prototype.put = function (params, options, callback) {
190
+ return this.request('PUT', params, options, callback);
191
+ };
192
+
193
+ /**
194
+ * Make a customized TRACE request.
195
+ *
196
+ * @memberOf API-HTTP
197
+ *
198
+ * @param {Object} params
199
+ * @param {Object} params.path - The URL of the request
200
+ * @param {Object} [params.querystring] - The querystring parameters
201
+ * @param {Object} [params.headers] - The request headers
202
+ * @param {Object} [params.body] - The request body
203
+ *
204
+ * @param {Object} [options] - Options for {@link Transport#request}
205
+ * @param {function} [callback] - Callback that handles errors and response
206
+ *
207
+ * @returns {{abort: function(), then: function(), catch: function()}|Promise<never>|*}
208
+ */
209
+ HttpApi.prototype.trace = function (params, options, callback) {
210
+ return this.request('TRACE', params, options, callback);
211
+ };
212
+
213
+ module.exports = HttpApi;
@@ -1336,7 +1336,7 @@ IndicesApi.prototype.getTemplate = function indicesGetTemplateApi(params, option
1336
1336
  };
1337
1337
 
1338
1338
  /**
1339
- * Returns a progress status of current upgrade. (Deprecated. Use API-Document#reindex instead)
1339
+ * Returns a progress status of current upgrade.
1340
1340
  *
1341
1341
  * @memberOf API-Index
1342
1342
  *