@opensearch-project/opensearch 2.0.0 → 2.2.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/.eslintrc.json +13 -5
- package/ADMINS.md +13 -38
- package/CHANGELOG.md +54 -0
- package/COMPATIBILITY.md +4 -1
- package/MAINTAINERS.md +11 -73
- package/Makefile +2 -12
- package/README.md +4 -107
- package/RELEASING.md +7 -1
- package/USER_GUIDE.md +248 -0
- package/api/api/bulk.js +24 -2
- package/api/api/cat.js +320 -2
- package/api/api/clear_scroll.js +15 -2
- package/api/api/cluster.js +238 -2
- package/api/api/count.js +29 -2
- package/api/api/create.js +27 -2
- package/api/api/create_pit.js +88 -0
- package/api/api/dangling_indices.js +46 -2
- package/api/api/delete.js +24 -2
- package/api/api/delete_all_pits.js +53 -0
- package/api/api/delete_by_query.js +49 -2
- package/api/api/delete_by_query_rethrottle.js +15 -2
- package/api/api/delete_pit.js +61 -0
- package/api/api/delete_script.js +15 -2
- package/api/api/exists.js +26 -2
- package/api/api/exists_source.js +26 -2
- package/api/api/explain.js +28 -2
- package/api/api/features.js +25 -2
- package/api/api/field_caps.js +20 -2
- package/api/api/get.js +26 -2
- package/api/api/get_all_pits.js +53 -0
- package/api/api/get_script.js +17 -2
- package/api/api/get_script_context.js +12 -2
- package/api/api/get_script_languages.js +12 -2
- package/api/api/get_source.js +26 -2
- package/api/api/index.js +30 -2
- package/api/api/indices.js +816 -2
- package/api/api/info.js +12 -2
- package/api/api/ingest.js +90 -2
- package/api/api/mget.js +25 -2
- package/api/api/msearch.js +23 -2
- package/api/api/msearch_template.js +20 -2
- package/api/api/mtermvectors.js +1 -2
- package/api/api/nodes.js +92 -2
- package/api/api/ping.js +12 -2
- package/api/api/put_script.js +18 -2
- package/api/api/rank_eval.js +20 -2
- package/api/api/reindex.js +23 -2
- package/api/api/reindex_rethrottle.js +15 -2
- package/api/api/render_search_template.js +15 -2
- package/api/api/scripts_painless_execute.js +14 -2
- package/api/api/scroll.js +18 -2
- package/api/api/search.js +61 -2
- package/api/api/search_shards.js +20 -2
- package/api/api/search_template.js +28 -2
- package/api/api/shutdown.js +4 -2
- package/api/api/snapshot.js +211 -2
- package/api/api/tasks.js +57 -2
- package/api/api/terms_enum.js +2 -2
- package/api/api/termvectors.js +27 -2
- package/api/api/update.js +29 -2
- package/api/api/update_by_query.js +51 -2
- package/api/api/update_by_query_rethrottle.js +15 -2
- package/api/index.js +29 -2
- package/api/new.d.ts +65 -2
- package/api/opensearch_dashboards.d.ts +5 -2
- package/api/requestParams.d.ts +17 -2
- package/api/types.d.ts +48 -2
- package/api/utils.js +1 -2
- package/index.d.ts +605 -120
- package/index.js +2 -3
- package/index.mjs +1 -2
- package/jenkins/release.JenkinsFile +11 -0
- package/lib/Connection.d.ts +1 -2
- package/lib/Connection.js +5 -4
- package/lib/Helpers.d.ts +5 -4
- package/lib/Helpers.js +13 -17
- package/lib/Serializer.d.ts +1 -2
- package/lib/Serializer.js +2 -3
- package/lib/Transport.d.ts +10 -4
- package/lib/Transport.js +34 -7
- package/lib/aws/AwsSigv4Signer.js +176 -0
- package/lib/aws/errors.js +24 -0
- package/lib/aws/index.d.ts +39 -0
- package/lib/aws/index.js +19 -0
- package/lib/errors.d.ts +1 -2
- package/lib/errors.js +1 -2
- package/lib/pool/BaseConnectionPool.js +1 -2
- package/lib/pool/CloudConnectionPool.js +1 -2
- package/lib/pool/ConnectionPool.js +1 -2
- package/lib/pool/index.d.ts +1 -2
- package/lib/pool/index.js +1 -2
- package/package.json +36 -18
package/api/api/indices.js
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
/*
|
|
2
|
+
* Copyright OpenSearch Contributors
|
|
2
3
|
* SPDX-License-Identifier: Apache-2.0
|
|
3
4
|
*
|
|
4
5
|
* The OpenSearch Contributors require contributions made to
|
|
5
6
|
* this file be licensed under the Apache-2.0 license or a
|
|
6
7
|
* compatible open source license.
|
|
7
8
|
*
|
|
8
|
-
* Modifications Copyright OpenSearch Contributors. See
|
|
9
|
-
* GitHub history for details.
|
|
10
9
|
*/
|
|
11
10
|
|
|
12
11
|
/*
|
|
@@ -30,6 +29,8 @@
|
|
|
30
29
|
|
|
31
30
|
'use strict';
|
|
32
31
|
|
|
32
|
+
/** @namespace API-Index */
|
|
33
|
+
|
|
33
34
|
/* eslint camelcase: 0 */
|
|
34
35
|
/* eslint no-unused-vars: 0 */
|
|
35
36
|
|
|
@@ -129,6 +130,25 @@ function IndicesApi(transport, ConfigurationError) {
|
|
|
129
130
|
this[kConfigurationError] = ConfigurationError;
|
|
130
131
|
}
|
|
131
132
|
|
|
133
|
+
/**
|
|
134
|
+
* Adds a block to an index.
|
|
135
|
+
*
|
|
136
|
+
* @memberOf API-Index
|
|
137
|
+
*
|
|
138
|
+
* @param {Object} params
|
|
139
|
+
* @param {string} params.index - A comma separated list of indices to add a block to
|
|
140
|
+
* @param {string} params.block - The block to add (one of read, write, read_only or metadata)
|
|
141
|
+
* @param {string} [params.timeout] - Explicit operation timeout
|
|
142
|
+
* @param {string} [params.cluster_manager_timeout] - Specify timeout for connection to cluster_manager
|
|
143
|
+
* @param {boolean} [params.ignore_unavailable] - Whether specified concrete indices should be ignored when unavailable (missing or closed)
|
|
144
|
+
* @param {boolean} [params.allow_no_indices] - Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
|
|
145
|
+
* @param {string} [params.expand_wildcards] - Whether to expand wildcard expression to concrete indices that are open, closed or both. (options: open, closed, hidden, none, all)
|
|
146
|
+
*
|
|
147
|
+
* @param {Object} options - Options for {@link Transport#request}
|
|
148
|
+
* @param {function} callback - Callback that handles errors and response
|
|
149
|
+
*
|
|
150
|
+
* @returns {{abort: function(), then: function(), catch: function()}|Promise<never>|*}
|
|
151
|
+
*/
|
|
132
152
|
IndicesApi.prototype.addBlock = function indicesAddBlockApi(params, options, callback) {
|
|
133
153
|
[params, options, callback] = normalizeArguments(params, options, callback);
|
|
134
154
|
|
|
@@ -166,6 +186,21 @@ IndicesApi.prototype.addBlock = function indicesAddBlockApi(params, options, cal
|
|
|
166
186
|
return this.transport.request(request, options, callback);
|
|
167
187
|
};
|
|
168
188
|
|
|
189
|
+
/**
|
|
190
|
+
* Performs the analysis process on a text and return the tokens breakdown of the text.
|
|
191
|
+
* <br/> See Also: {@link https://opensearch.org/docs/latest/api-reference/analyze-apis/perform-text-analysis/ OpenSearch - Perform text analysis}
|
|
192
|
+
*
|
|
193
|
+
* @memberOf API-Index
|
|
194
|
+
*
|
|
195
|
+
* @param {Object} params
|
|
196
|
+
* @param {string} [params.index] - The name of the index to scope the operation
|
|
197
|
+
* @param {Object} [params.body] - Define analyzer/tokenizer parameters and the text on which the analysis should be performed
|
|
198
|
+
*
|
|
199
|
+
* @param {Object} options - Options for {@link Transport#request}
|
|
200
|
+
* @param {function} callback - Callback that handles errors and response
|
|
201
|
+
*
|
|
202
|
+
* @returns {{abort: function(), then: function(), catch: function()}|Promise<never>|*}
|
|
203
|
+
*/
|
|
169
204
|
IndicesApi.prototype.analyze = function indicesAnalyzeApi(params, options, callback) {
|
|
170
205
|
[params, options, callback] = normalizeArguments(params, options, callback);
|
|
171
206
|
|
|
@@ -192,6 +227,27 @@ IndicesApi.prototype.analyze = function indicesAnalyzeApi(params, options, callb
|
|
|
192
227
|
return this.transport.request(request, options, callback);
|
|
193
228
|
};
|
|
194
229
|
|
|
230
|
+
/**
|
|
231
|
+
* Clears all or specific caches for one or more indices.
|
|
232
|
+
* <br/> See Also: {@link https://opensearch.org/docs/latest/api-reference/index-apis/clear-index-cache/ OpenSearch - Clear index or data stream cache}
|
|
233
|
+
*
|
|
234
|
+
* @memberOf API-Index
|
|
235
|
+
*
|
|
236
|
+
* @param {Object} params
|
|
237
|
+
* @param {string} [params.index] - A comma-separated list of index name to limit the operation
|
|
238
|
+
* @param {boolean} [params.fielddata] - Clear field data
|
|
239
|
+
* @param {string} [params.fields] - A comma-separated list of fields to clear when using the `fielddata` parameter (default: all)
|
|
240
|
+
* @param {boolean} [params.query] - Clear query caches
|
|
241
|
+
* @param {boolean} [params.ignore_unavailable] - Whether specified concrete indices should be ignored when unavailable (missing or closed)
|
|
242
|
+
* @param {boolean} [params.allow_no_indices] - Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
|
|
243
|
+
* @param {string} [params.expand_wildcards] - Whether to expand wildcard expression to concrete indices that are open, closed or both. (options: open, closed, hidden, none, all)
|
|
244
|
+
* @param {boolean} [params.request] - Clear request cache
|
|
245
|
+
*
|
|
246
|
+
* @param {Object} options - Options for {@link Transport#request}
|
|
247
|
+
* @param {function} callback - Callback that handles errors and response
|
|
248
|
+
*
|
|
249
|
+
* @returns {{abort: function(), then: function(), catch: function()}|Promise<never>|*}
|
|
250
|
+
*/
|
|
195
251
|
IndicesApi.prototype.clearCache = function indicesClearCacheApi(params, options, callback) {
|
|
196
252
|
[params, options, callback] = normalizeArguments(params, options, callback);
|
|
197
253
|
|
|
@@ -218,6 +274,25 @@ IndicesApi.prototype.clearCache = function indicesClearCacheApi(params, options,
|
|
|
218
274
|
return this.transport.request(request, options, callback);
|
|
219
275
|
};
|
|
220
276
|
|
|
277
|
+
/**
|
|
278
|
+
* Clones an index
|
|
279
|
+
* <br/> See Also: {@link https://opensearch.org/docs/latest/api-reference/index-apis/clone/ OpenSearch - Clone Index}
|
|
280
|
+
*
|
|
281
|
+
* @memberOf API-Index
|
|
282
|
+
*
|
|
283
|
+
* @param {Object} params
|
|
284
|
+
* @param {string} params.index - The name of the source index to clone
|
|
285
|
+
* @param {string} params.target - The name of the target index to clone into
|
|
286
|
+
* @param {string} [params.timeout] - Explicit operation timeout
|
|
287
|
+
* @param {string} [params.cluster_manager_timeout] - Specify timeout for connection to cluster_manager
|
|
288
|
+
* @param {string} [params.wait_for_active_shards] - Set the number of active shards to wait for on the cloned index before the operation returns.
|
|
289
|
+
* @param {Object} [params.body] - The configuration for the target index (`settings` and `aliases`)
|
|
290
|
+
*
|
|
291
|
+
* @param {Object} options - Options for {@link Transport#request}
|
|
292
|
+
* @param {function} callback - Callback that handles errors and response
|
|
293
|
+
*
|
|
294
|
+
* @returns {{abort: function(), then: function(), catch: function()}|Promise<never>|*}
|
|
295
|
+
*/
|
|
221
296
|
IndicesApi.prototype.clone = function indicesCloneApi(params, options, callback) {
|
|
222
297
|
[params, options, callback] = normalizeArguments(params, options, callback);
|
|
223
298
|
|
|
@@ -255,6 +330,26 @@ IndicesApi.prototype.clone = function indicesCloneApi(params, options, callback)
|
|
|
255
330
|
return this.transport.request(request, options, callback);
|
|
256
331
|
};
|
|
257
332
|
|
|
333
|
+
/**
|
|
334
|
+
* Closes an index.
|
|
335
|
+
* <br/> See Also: {@link https://opensearch.org/docs/latest/api-reference/index-apis/close-index/ OpenSearch - Close Index}
|
|
336
|
+
*
|
|
337
|
+
* @memberOf API-Index
|
|
338
|
+
*
|
|
339
|
+
* @param {Object} params
|
|
340
|
+
* @param {string} params.index - A comma separated list of indices to close
|
|
341
|
+
* @param {string} [params.timeout] - Explicit operation timeout
|
|
342
|
+
* @param {string} [params.cluster_manager_timeout] - Specify timeout for connection to cluster_manager
|
|
343
|
+
* @param {boolean} [params.ignore_unavailable] - Whether specified concrete indices should be ignored when unavailable (missing or closed)
|
|
344
|
+
* @param {boolean} [params.allow_no_indices] - Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
|
|
345
|
+
* @param {string} [params.expand_wildcards] - Whether to expand wildcard expression to concrete indices that are open, closed or both. (options: open, closed, hidden, none, all)
|
|
346
|
+
* @param {string} [params.wait_for_active_shards] - Sets the number of active shards to wait for before the operation returns. Set to `index-setting` to wait according to the index setting `index.write.wait_for_active_shards`, or `all` to wait for all shards, or an integer. Defaults to `0`.
|
|
347
|
+
*
|
|
348
|
+
* @param {Object} options - Options for {@link Transport#request}
|
|
349
|
+
* @param {function} callback - Callback that handles errors and response
|
|
350
|
+
*
|
|
351
|
+
* @returns {{abort: function(), then: function(), catch: function()}|Promise<never>|*}
|
|
352
|
+
*/
|
|
258
353
|
IndicesApi.prototype.close = function indicesCloseApi(params, options, callback) {
|
|
259
354
|
[params, options, callback] = normalizeArguments(params, options, callback);
|
|
260
355
|
|
|
@@ -282,6 +377,24 @@ IndicesApi.prototype.close = function indicesCloseApi(params, options, callback)
|
|
|
282
377
|
return this.transport.request(request, options, callback);
|
|
283
378
|
};
|
|
284
379
|
|
|
380
|
+
/**
|
|
381
|
+
* Creates an index
|
|
382
|
+
* <br/> See Also: {@link https://opensearch.org/docs/latest/api-reference/index-apis/create-index/ OpenSearch - Create Index}
|
|
383
|
+
*
|
|
384
|
+
* @memberOf API-Index
|
|
385
|
+
*
|
|
386
|
+
* @param {Object} params
|
|
387
|
+
* @param {string} params.index - Name of the index.
|
|
388
|
+
* @param {Object} [params.body] - The configuration for the index (`settings` and `mappings`)
|
|
389
|
+
* @param {string} [params.wait_for_active_shards] - Set the number of active shards to wait for before the operation returns.
|
|
390
|
+
* @param {string} [params.timeout] - Explicit operation timeout
|
|
391
|
+
* @param {string} [params.cluster_manager_timeout] - Specify timeout for connection to cluster_manager
|
|
392
|
+
*
|
|
393
|
+
* @param {Object} options - Options for {@link Transport#request}
|
|
394
|
+
* @param {function} callback - Callback that handles errors and response
|
|
395
|
+
*
|
|
396
|
+
* @returns {{abort: function(), then: function(), catch: function()}|Promise<never>|*}
|
|
397
|
+
*/
|
|
285
398
|
IndicesApi.prototype.create = function indicesCreateApi(params, options, callback) {
|
|
286
399
|
[params, options, callback] = normalizeArguments(params, options, callback);
|
|
287
400
|
|
|
@@ -309,6 +422,25 @@ IndicesApi.prototype.create = function indicesCreateApi(params, options, callbac
|
|
|
309
422
|
return this.transport.request(request, options, callback);
|
|
310
423
|
};
|
|
311
424
|
|
|
425
|
+
/**
|
|
426
|
+
* Deletes an index.
|
|
427
|
+
* <br/> See Also: {@link https://opensearch.org/docs/latest/api-reference/index-apis/delete-index/ OpenSearch - Delete Index}
|
|
428
|
+
*
|
|
429
|
+
* @memberOf API-Index
|
|
430
|
+
*
|
|
431
|
+
* @param {Object} params
|
|
432
|
+
* @param {string} params.index - A comma-separated list of indices to delete; use `_all` or `*` string to delete all indices
|
|
433
|
+
* @param {string} [params.timeout] - Explicit operation timeout
|
|
434
|
+
* @param {string} [params.cluster_manager_timeout] - Specify timeout for connection to cluster_manager
|
|
435
|
+
* @param {boolean} [params.ignore_unavailable=false] - Ignore unavailable indexes
|
|
436
|
+
* @param {boolean} [params.allow_no_indices=false] - Ignore if a wildcard expression resolves to no concrete indices
|
|
437
|
+
* @param {string} [params.expand_wildcards=open] - Whether wildcard expressions should get expanded to open or closed indices (options: open, closed, hidden, none, all)
|
|
438
|
+
*
|
|
439
|
+
* @param {Object} options - Options for {@link Transport#request}
|
|
440
|
+
* @param {function} callback - Callback that handles errors and response
|
|
441
|
+
*
|
|
442
|
+
* @returns {{abort: function(), then: function(), catch: function()}|Promise<never>|*}
|
|
443
|
+
*/
|
|
312
444
|
IndicesApi.prototype.delete = function indicesDeleteApi(params, options, callback) {
|
|
313
445
|
[params, options, callback] = normalizeArguments(params, options, callback);
|
|
314
446
|
|
|
@@ -336,6 +468,23 @@ IndicesApi.prototype.delete = function indicesDeleteApi(params, options, callbac
|
|
|
336
468
|
return this.transport.request(request, options, callback);
|
|
337
469
|
};
|
|
338
470
|
|
|
471
|
+
/**
|
|
472
|
+
* Deletes an alias.
|
|
473
|
+
* <br/> See Also: {@link https://opensearch.org/docs/latest/opensearch/index-alias/ OpenSearch - Index Aliases}
|
|
474
|
+
*
|
|
475
|
+
* @memberOf API-Index
|
|
476
|
+
*
|
|
477
|
+
* @param {Object} params
|
|
478
|
+
* @param {string} params.index - A comma-separated list of index names (supports wildcards); use `_all` for all indices
|
|
479
|
+
* @param {string} params.name - A comma-separated list of aliases to delete (supports wildcards); use `_all` to delete all aliases for the specified indices.
|
|
480
|
+
* @param {string} [params.timeout] - Explicit timestamp for the document
|
|
481
|
+
* @param {string} [params.cluster_manager_timeout] - Specify timeout for connection to cluster_manager
|
|
482
|
+
*
|
|
483
|
+
* @param {Object} options - Options for {@link Transport#request}
|
|
484
|
+
* @param {function} callback - Callback that handles errors and response
|
|
485
|
+
*
|
|
486
|
+
* @returns {{abort: function(), then: function(), catch: function()}|Promise<never>|*}
|
|
487
|
+
*/
|
|
339
488
|
IndicesApi.prototype.deleteAlias = function indicesDeleteAliasApi(params, options, callback) {
|
|
340
489
|
[params, options, callback] = normalizeArguments(params, options, callback);
|
|
341
490
|
|
|
@@ -378,6 +527,22 @@ IndicesApi.prototype.deleteAlias = function indicesDeleteAliasApi(params, option
|
|
|
378
527
|
return this.transport.request(request, options, callback);
|
|
379
528
|
};
|
|
380
529
|
|
|
530
|
+
/**
|
|
531
|
+
* Deletes an index template.
|
|
532
|
+
* <br/> See Also: {@link https://opensearch.org/docs/latest/opensearch/index-templates/ OpenSearch - Index Templates}
|
|
533
|
+
*
|
|
534
|
+
* @memberOf API-Index
|
|
535
|
+
*
|
|
536
|
+
* @param {Object} params
|
|
537
|
+
* @param {string} params.name - The name of the template
|
|
538
|
+
* @param {string} [params.timeout] - Explicit operation timeout
|
|
539
|
+
* @param {string} [params.cluster_manager_timeout] - Specify timeout for connection to cluster_manager
|
|
540
|
+
*
|
|
541
|
+
* @param {Object} options - Options for {@link Transport#request}
|
|
542
|
+
* @param {function} callback - Callback that handles errors and response
|
|
543
|
+
*
|
|
544
|
+
* @returns {{abort: function(), then: function(), catch: function()}|Promise<never>|*}
|
|
545
|
+
*/
|
|
381
546
|
IndicesApi.prototype.deleteIndexTemplate = function indicesDeleteIndexTemplateApi(
|
|
382
547
|
params,
|
|
383
548
|
options,
|
|
@@ -409,6 +574,21 @@ IndicesApi.prototype.deleteIndexTemplate = function indicesDeleteIndexTemplateAp
|
|
|
409
574
|
return this.transport.request(request, options, callback);
|
|
410
575
|
};
|
|
411
576
|
|
|
577
|
+
/**
|
|
578
|
+
* Deletes an index template (Deprecated. Use IndicesApi#deleteIndexTemplate instead)
|
|
579
|
+
*
|
|
580
|
+
* @memberOf API-Index
|
|
581
|
+
*
|
|
582
|
+
* @param {Object} params
|
|
583
|
+
* @param {string} params.name - The name of the template
|
|
584
|
+
* @param {string} [params.timeout] - Explicit operation timeout
|
|
585
|
+
* @param {string} [params.cluster_manager_timeout] - Specify timeout for connection to cluster_manager
|
|
586
|
+
*
|
|
587
|
+
* @param {Object} options - Options for {@link Transport#request}
|
|
588
|
+
* @param {function} callback - Callback that handles errors and response
|
|
589
|
+
*
|
|
590
|
+
* @returns {{abort: function(), then: function(), catch: function()}|Promise<never>|*}
|
|
591
|
+
*/
|
|
412
592
|
IndicesApi.prototype.deleteTemplate = function indicesDeleteTemplateApi(params, options, callback) {
|
|
413
593
|
[params, options, callback] = normalizeArguments(params, options, callback);
|
|
414
594
|
|
|
@@ -436,6 +616,7 @@ IndicesApi.prototype.deleteTemplate = function indicesDeleteTemplateApi(params,
|
|
|
436
616
|
return this.transport.request(request, options, callback);
|
|
437
617
|
};
|
|
438
618
|
|
|
619
|
+
// TODO: Remove. Experimental feature added in ES 7.15
|
|
439
620
|
IndicesApi.prototype.diskUsage = function indicesDiskUsageApi(params, options, callback) {
|
|
440
621
|
[params, options, callback] = normalizeArguments(params, options, callback);
|
|
441
622
|
|
|
@@ -463,6 +644,26 @@ IndicesApi.prototype.diskUsage = function indicesDiskUsageApi(params, options, c
|
|
|
463
644
|
return this.transport.request(request, options, callback);
|
|
464
645
|
};
|
|
465
646
|
|
|
647
|
+
/**
|
|
648
|
+
* Returns information about whether a particular index exists.
|
|
649
|
+
* <br/> See Also: {@link https://opensearch.org/docs/latest/api-reference/index-apis/exists/ OpenSearch - Index Exists}
|
|
650
|
+
*
|
|
651
|
+
* @memberOf API-Index
|
|
652
|
+
*
|
|
653
|
+
* @param {Object} params
|
|
654
|
+
* @param {string} params.index - A comma-separated list of index names
|
|
655
|
+
* @param {boolean} [params.local=false] - Return local information, do not retrieve the state from cluster_manager node
|
|
656
|
+
* @param {boolean} [params.ignore_unavailable=false] - Ignore unavailable indexes
|
|
657
|
+
* @param {boolean} [params.allow_no_indices=false] - Ignore if a wildcard expression resolves to no concrete indices
|
|
658
|
+
* @param {string} [params.expand_wildcards=open] - Whether wildcard expressions should get expanded to open or closed indices (options: open, closed, hidden, none, all)
|
|
659
|
+
* @param {boolean} [params.flat_settings=false] - Return settings in flat format
|
|
660
|
+
* @param {boolean} [params.include_defaults] - Whether to return all default setting for each of the indices.
|
|
661
|
+
*
|
|
662
|
+
* @param {Object} options - Options for {@link Transport#request}
|
|
663
|
+
* @param {function} callback - Callback that handles errors and response
|
|
664
|
+
*
|
|
665
|
+
* @returns {{abort: function(), then: function(), catch: function()}|Promise<never>|*}
|
|
666
|
+
*/
|
|
466
667
|
IndicesApi.prototype.exists = function indicesExistsApi(params, options, callback) {
|
|
467
668
|
[params, options, callback] = normalizeArguments(params, options, callback);
|
|
468
669
|
|
|
@@ -490,6 +691,25 @@ IndicesApi.prototype.exists = function indicesExistsApi(params, options, callbac
|
|
|
490
691
|
return this.transport.request(request, options, callback);
|
|
491
692
|
};
|
|
492
693
|
|
|
694
|
+
/**
|
|
695
|
+
* Returns information about whether a particular alias exists.
|
|
696
|
+
* <br/> See Also: {@link https://opensearch.org/docs/latest/opensearch/index-alias/ OpenSearch - Index Aliases}
|
|
697
|
+
*
|
|
698
|
+
* @memberOf API-Index
|
|
699
|
+
*
|
|
700
|
+
* @param {Object} params
|
|
701
|
+
* @param {string} params.name - A comma-separated list of alias names to return
|
|
702
|
+
* @param {string} [params.index] - A comma-separated list of index names to filter aliases
|
|
703
|
+
* @param {boolean} [params.ignore_unavailable] - Whether specified concrete indices should be ignored when unavailable (missing or closed)
|
|
704
|
+
* @param {boolean} [params.allow_no_indices] - Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
|
|
705
|
+
* @param {string} [params.expand_wildcards] - Whether to expand wildcard expression to concrete indices that are open, closed or both. (options: open, closed, hidden, none, all)
|
|
706
|
+
* @param {boolean} [params.local=false] - Return local information, do not retrieve the state from cluster_manager node
|
|
707
|
+
*
|
|
708
|
+
* @param {Object} options - Options for {@link Transport#request}
|
|
709
|
+
* @param {function} callback - Callback that handles errors and response
|
|
710
|
+
*
|
|
711
|
+
* @returns {{abort: function(), then: function(), catch: function()}|Promise<never>|*}
|
|
712
|
+
*/
|
|
493
713
|
IndicesApi.prototype.existsAlias = function indicesExistsAliasApi(params, options, callback) {
|
|
494
714
|
[params, options, callback] = normalizeArguments(params, options, callback);
|
|
495
715
|
|
|
@@ -522,6 +742,23 @@ IndicesApi.prototype.existsAlias = function indicesExistsAliasApi(params, option
|
|
|
522
742
|
return this.transport.request(request, options, callback);
|
|
523
743
|
};
|
|
524
744
|
|
|
745
|
+
/**
|
|
746
|
+
* Returns information about whether a particular index template exists.
|
|
747
|
+
* <br/> See Also: {@link https://opensearch.org/docs/latest/opensearch/index-templates/ OpenSearch - Index Templates}
|
|
748
|
+
*
|
|
749
|
+
* @memberOf API-Index
|
|
750
|
+
*
|
|
751
|
+
* @param {Object} params
|
|
752
|
+
* @param {string} params.name - The name of the template
|
|
753
|
+
* @param {boolean} [params.flat_settings=false] - Return settings in flat format
|
|
754
|
+
* @param {string} [params.cluster_manager_timeout] - Explicit operation timeout for connection to cluster_manager node
|
|
755
|
+
* @param {boolean} [params.local=false] - Return local information, do not retrieve the state from cluster_manager node
|
|
756
|
+
*
|
|
757
|
+
* @param {Object} options - Options for {@link Transport#request}
|
|
758
|
+
* @param {function} callback - Callback that handles errors and response
|
|
759
|
+
*
|
|
760
|
+
* @returns {{abort: function(), then: function(), catch: function()}|Promise<never>|*}
|
|
761
|
+
*/
|
|
525
762
|
IndicesApi.prototype.existsIndexTemplate = function indicesExistsIndexTemplateApi(
|
|
526
763
|
params,
|
|
527
764
|
options,
|
|
@@ -553,6 +790,22 @@ IndicesApi.prototype.existsIndexTemplate = function indicesExistsIndexTemplateAp
|
|
|
553
790
|
return this.transport.request(request, options, callback);
|
|
554
791
|
};
|
|
555
792
|
|
|
793
|
+
/**
|
|
794
|
+
* Returns information about whether a particular index template exists. (Deprecated. Use IndicesApi#existsIndexTemplate instead)
|
|
795
|
+
*
|
|
796
|
+
* @memberOf API-Index
|
|
797
|
+
*
|
|
798
|
+
* @param {Object} params
|
|
799
|
+
* @param {string} params.name - The comma separated names of the index templates
|
|
800
|
+
* @param {boolean} [params.flat_settings=false] - Return settings in flat format
|
|
801
|
+
* @param {string} [params.cluster_manager_timeout] - Explicit operation timeout for connection to cluster_manager node
|
|
802
|
+
* @param {boolean} [params.local=false] - Return local information, do not retrieve the state from cluster_manager node
|
|
803
|
+
*
|
|
804
|
+
* @param {Object} options - Options for {@link Transport#request}
|
|
805
|
+
* @param {function} callback - Callback that handles errors and response
|
|
806
|
+
*
|
|
807
|
+
* @returns {{abort: function(), then: function(), catch: function()}|Promise<never>|*}
|
|
808
|
+
*/
|
|
556
809
|
IndicesApi.prototype.existsTemplate = function indicesExistsTemplateApi(params, options, callback) {
|
|
557
810
|
[params, options, callback] = normalizeArguments(params, options, callback);
|
|
558
811
|
|
|
@@ -580,6 +833,7 @@ IndicesApi.prototype.existsTemplate = function indicesExistsTemplateApi(params,
|
|
|
580
833
|
return this.transport.request(request, options, callback);
|
|
581
834
|
};
|
|
582
835
|
|
|
836
|
+
// TODO: Remove. Experimental feature added in ES 7.15
|
|
583
837
|
IndicesApi.prototype.fieldUsageStats = function indicesFieldUsageStatsApi(
|
|
584
838
|
params,
|
|
585
839
|
options,
|
|
@@ -611,6 +865,24 @@ IndicesApi.prototype.fieldUsageStats = function indicesFieldUsageStatsApi(
|
|
|
611
865
|
return this.transport.request(request, options, callback);
|
|
612
866
|
};
|
|
613
867
|
|
|
868
|
+
/**
|
|
869
|
+
* Performs the flush operation on one or more indices.
|
|
870
|
+
*
|
|
871
|
+
* @memberOf API-Index
|
|
872
|
+
*
|
|
873
|
+
* @param {Object} params
|
|
874
|
+
* @param {string} [params.index] - A comma-separated list of index names; use `_all` or empty string for all indices
|
|
875
|
+
* @param {boolean} [params.force] - Whether a flush should be forced even if it is not necessarily needed ie. if no changes will be committed to the index. This is useful if transaction log IDs should be incremented even if no uncommitted changes are present. (This setting can be considered as internal)
|
|
876
|
+
* @param {boolean} [params.wait_if_ongoing=true] - If set to true the flush operation will block until the flush can be executed if another flush operation is already executing. If set to false the flush will be skipped iff if another flush operation is already running.
|
|
877
|
+
* @param {boolean} [params.ignore_unavailable] - Whether specified concrete indices should be ignored when unavailable (missing or closed)
|
|
878
|
+
* @param {boolean} [params.allow_no_indices] - Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
|
|
879
|
+
* @param {string} [params.expand_wildcards] - Whether to expand wildcard expression to concrete indices that are open, closed or both. (options: open, closed, hidden, none, all)
|
|
880
|
+
*
|
|
881
|
+
* @param {Object} options - Options for {@link Transport#request}
|
|
882
|
+
* @param {function} callback - Callback that handles errors and response
|
|
883
|
+
*
|
|
884
|
+
* @returns {{abort: function(), then: function(), catch: function()}|Promise<never>|*}
|
|
885
|
+
*/
|
|
614
886
|
IndicesApi.prototype.flush = function indicesFlushApi(params, options, callback) {
|
|
615
887
|
[params, options, callback] = normalizeArguments(params, options, callback);
|
|
616
888
|
|
|
@@ -637,6 +909,25 @@ IndicesApi.prototype.flush = function indicesFlushApi(params, options, callback)
|
|
|
637
909
|
return this.transport.request(request, options, callback);
|
|
638
910
|
};
|
|
639
911
|
|
|
912
|
+
/**
|
|
913
|
+
* Performs the force merge operation on one or more indices.
|
|
914
|
+
*
|
|
915
|
+
* @memberOf API-Index
|
|
916
|
+
*
|
|
917
|
+
* @param {Object} params
|
|
918
|
+
* @param {string} [params.index] - A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices
|
|
919
|
+
* @param {boolean} [params.flush=true] - Specify whether the index should be flushed after performing the operation
|
|
920
|
+
* @param {boolean} [params.ignore_unavailable] - Whether specified concrete indices should be ignored when unavailable (missing or closed)
|
|
921
|
+
* @param {boolean} [params.allow_no_indices] - Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
|
|
922
|
+
* @param {string} [params.expand_wildcards] - Whether to expand wildcard expression to concrete indices that are open, closed or both. (options: open, closed, hidden, none, all)
|
|
923
|
+
* @param {number} [params.max_num_segments] - The number of segments the index should be merged into (default: dynamic)
|
|
924
|
+
* @param {boolean} [params.only_expunge_deletes] - Specify whether the operation should only expunge deleted documents
|
|
925
|
+
*
|
|
926
|
+
* @param {Object} options - Options for {@link Transport#request}
|
|
927
|
+
* @param {function} callback - Callback that handles errors and response
|
|
928
|
+
*
|
|
929
|
+
* @returns {{abort: function(), then: function(), catch: function()}|Promise<never>|*}
|
|
930
|
+
*/
|
|
640
931
|
IndicesApi.prototype.forcemerge = function indicesForcemergeApi(params, options, callback) {
|
|
641
932
|
[params, options, callback] = normalizeArguments(params, options, callback);
|
|
642
933
|
|
|
@@ -663,6 +954,27 @@ IndicesApi.prototype.forcemerge = function indicesForcemergeApi(params, options,
|
|
|
663
954
|
return this.transport.request(request, options, callback);
|
|
664
955
|
};
|
|
665
956
|
|
|
957
|
+
/**
|
|
958
|
+
* Returns information about one or more indices.
|
|
959
|
+
* <br/> See Also: {@link https://opensearch.org/docs/latest/api-reference/index-apis/get-index/ OpenSearch - Get Index}
|
|
960
|
+
*
|
|
961
|
+
* @memberOf API-Index
|
|
962
|
+
*
|
|
963
|
+
* @param {Object} params
|
|
964
|
+
* @param {string} params.index - A comma-separated list of index names
|
|
965
|
+
* @param {boolean} [params.local=false] - Return local information, do not retrieve the state from cluster_manager node
|
|
966
|
+
* @param {boolean} [params.ignore_unavailable=false] - Ignore unavailable indexes
|
|
967
|
+
* @param {boolean} [params.allow_no_indices=false] - Ignore if a wildcard expression resolves to no concrete indices
|
|
968
|
+
* @param {string} [params.expand_wildcards=open] - Whether wildcard expressions should get expanded to open or closed indices (options: open, closed, hidden, none, all)
|
|
969
|
+
* @param {boolean} [params.flat_settings=false] - Return settings in flat format
|
|
970
|
+
* @param {boolean} [params.include_defaults] - Whether to return all default setting for each of the indices.
|
|
971
|
+
* @param {string} [params.cluster_manager_timeout] - Specify timeout for connection to cluster_manager
|
|
972
|
+
*
|
|
973
|
+
* @param {Object} options - Options for {@link Transport#request}
|
|
974
|
+
* @param {function} callback - Callback that handles errors and response
|
|
975
|
+
*
|
|
976
|
+
* @returns {{abort: function(), then: function(), catch: function()}|Promise<never>|*}
|
|
977
|
+
*/
|
|
666
978
|
IndicesApi.prototype.get = function indicesGetApi(params, options, callback) {
|
|
667
979
|
[params, options, callback] = normalizeArguments(params, options, callback);
|
|
668
980
|
|
|
@@ -690,6 +1002,25 @@ IndicesApi.prototype.get = function indicesGetApi(params, options, callback) {
|
|
|
690
1002
|
return this.transport.request(request, options, callback);
|
|
691
1003
|
};
|
|
692
1004
|
|
|
1005
|
+
/**
|
|
1006
|
+
* Returns an alias.
|
|
1007
|
+
* <br/> See Also: {@link https://opensearch.org/docs/latest/opensearch/index-alias/ OpenSearch - Index Aliases}
|
|
1008
|
+
*
|
|
1009
|
+
* @memberOf API-Index
|
|
1010
|
+
*
|
|
1011
|
+
* @param {Object} params
|
|
1012
|
+
* @param {string} [params.name] - A comma-separated list of alias names to return
|
|
1013
|
+
* @param {string} [params.index] - A comma-separated list of index names to filter aliases
|
|
1014
|
+
* @param {boolean} [params.ignore_unavailable] - Whether specified concrete indices should be ignored when unavailable (missing or closed)
|
|
1015
|
+
* @param {boolean} [params.allow_no_indices] - Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
|
|
1016
|
+
* @param {string} [params.expand_wildcards] - Whether to expand wildcard expression to concrete indices that are open, closed or both. (options: open, closed, hidden, none, all)
|
|
1017
|
+
* @param {boolean} [params.local=false] - Return local information, do not retrieve the state from cluster_manager node
|
|
1018
|
+
*
|
|
1019
|
+
* @param {Object} options - Options for {@link Transport#request}
|
|
1020
|
+
* @param {function} callback - Callback that handles errors and response
|
|
1021
|
+
*
|
|
1022
|
+
* @returns {{abort: function(), then: function(), catch: function()}|Promise<never>|*}
|
|
1023
|
+
*/
|
|
693
1024
|
IndicesApi.prototype.getAlias = function indicesGetAliasApi(params, options, callback) {
|
|
694
1025
|
[params, options, callback] = normalizeArguments(params, options, callback);
|
|
695
1026
|
|
|
@@ -722,6 +1053,26 @@ IndicesApi.prototype.getAlias = function indicesGetAliasApi(params, options, cal
|
|
|
722
1053
|
return this.transport.request(request, options, callback);
|
|
723
1054
|
};
|
|
724
1055
|
|
|
1056
|
+
/**
|
|
1057
|
+
* Returns mapping for one or more fields.
|
|
1058
|
+
* <br/> See Also: {@link https://opensearch.org/docs/latest/opensearch/mappings/ OpenSearch - Mapping}
|
|
1059
|
+
*
|
|
1060
|
+
* @memberOf API-Index
|
|
1061
|
+
*
|
|
1062
|
+
* @param {Object} params
|
|
1063
|
+
* @param {string} params.fields - A comma-separated list of fields
|
|
1064
|
+
* @param {string} [params.index] - A comma-separated list of index names
|
|
1065
|
+
* @param {boolean} [params.include_defaults] - Whether the default mapping values should be returned as well
|
|
1066
|
+
* @param {boolean} [params.ignore_unavailable] - Whether specified concrete indices should be ignored when unavailable (missing or closed)
|
|
1067
|
+
* @param {boolean} [params.allow_no_indices] - Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
|
|
1068
|
+
* @param {string} [params.expand_wildcards] - Whether to expand wildcard expression to concrete indices that are open, closed or both. (options: open, closed, hidden, none, all)
|
|
1069
|
+
* @param {boolean} [params.local=false] - Return local information, do not retrieve the state from cluster_manager node
|
|
1070
|
+
*
|
|
1071
|
+
* @param {Object} options - Options for {@link Transport#request}
|
|
1072
|
+
* @param {function} callback - Callback that handles errors and response
|
|
1073
|
+
*
|
|
1074
|
+
* @returns {{abort: function(), then: function(), catch: function()}|Promise<never>|*}
|
|
1075
|
+
*/
|
|
725
1076
|
IndicesApi.prototype.getFieldMapping = function indicesGetFieldMappingApi(
|
|
726
1077
|
params,
|
|
727
1078
|
options,
|
|
@@ -790,6 +1141,23 @@ IndicesApi.prototype.getFieldMapping = function indicesGetFieldMappingApi(
|
|
|
790
1141
|
return this.transport.request(request, options, callback);
|
|
791
1142
|
};
|
|
792
1143
|
|
|
1144
|
+
/**
|
|
1145
|
+
* Returns an index template.
|
|
1146
|
+
* <br/> See Also: {@link https://opensearch.org/docs/latest/opensearch/index-templates/ OpenSearch - Index Templates}
|
|
1147
|
+
*
|
|
1148
|
+
* @memberOf API-Index
|
|
1149
|
+
*
|
|
1150
|
+
* @param {Object} params
|
|
1151
|
+
* @param {string} [params.name] - The comma separated names of the index templates
|
|
1152
|
+
* @param {boolean} [params.flat_setting=false] - Return settings in flat format
|
|
1153
|
+
* @param {string} [params.cluster_manager_timeout] - Explicit operation timeout for connection to cluster_manager node
|
|
1154
|
+
* @param {boolean} [params.local=false] - Return local information, do not retrieve the state from cluster_manager node
|
|
1155
|
+
*
|
|
1156
|
+
* @param {Object} options - Options for {@link Transport#request}
|
|
1157
|
+
* @param {function} callback - Callback that handles errors and response
|
|
1158
|
+
*
|
|
1159
|
+
* @returns {{abort: function(), then: function(), catch: function()}|Promise<never>|*}
|
|
1160
|
+
*/
|
|
793
1161
|
IndicesApi.prototype.getIndexTemplate = function indicesGetIndexTemplateApi(
|
|
794
1162
|
params,
|
|
795
1163
|
options,
|
|
@@ -820,6 +1188,25 @@ IndicesApi.prototype.getIndexTemplate = function indicesGetIndexTemplateApi(
|
|
|
820
1188
|
return this.transport.request(request, options, callback);
|
|
821
1189
|
};
|
|
822
1190
|
|
|
1191
|
+
/**
|
|
1192
|
+
* Returns mappings for one or more indices.
|
|
1193
|
+
* <br/> See Also: {@link https://opensearch.org/docs/latest/opensearch/mappings/ OpenSearch - Mapping}
|
|
1194
|
+
*
|
|
1195
|
+
* @memberOf API-Index
|
|
1196
|
+
*
|
|
1197
|
+
* @param {Object} params
|
|
1198
|
+
* @param {string} [params.index] - A comma-separated list of index names
|
|
1199
|
+
* @param {boolean} [params.ignore_unavailable] - Whether specified concrete indices should be ignored when unavailable (missing or closed)
|
|
1200
|
+
* @param {boolean} [params.allow_no_indices] - Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
|
|
1201
|
+
* @param {string} [params.expand_wildcards] - Whether to expand wildcard expression to concrete indices that are open, closed or both. (options: open, closed, hidden, none, all)
|
|
1202
|
+
* @param {string} [params.cluster_manager_timeout] - Specify timeout for connection to cluster_manager
|
|
1203
|
+
* @param {boolean} [params.local=false] - Return local information, do not retrieve the state from cluster_manager node (Deprecated)
|
|
1204
|
+
*
|
|
1205
|
+
* @param {Object} options - Options for {@link Transport#request}
|
|
1206
|
+
* @param {function} callback - Callback that handles errors and response
|
|
1207
|
+
*
|
|
1208
|
+
* @returns {{abort: function(), then: function(), catch: function()}|Promise<never>|*}
|
|
1209
|
+
*/
|
|
823
1210
|
IndicesApi.prototype.getMapping = function indicesGetMappingApi(params, options, callback) {
|
|
824
1211
|
[params, options, callback] = normalizeArguments(params, options, callback);
|
|
825
1212
|
|
|
@@ -852,6 +1239,28 @@ IndicesApi.prototype.getMapping = function indicesGetMappingApi(params, options,
|
|
|
852
1239
|
return this.transport.request(request, options, callback);
|
|
853
1240
|
};
|
|
854
1241
|
|
|
1242
|
+
/**
|
|
1243
|
+
* Returns settings for one or more indices.
|
|
1244
|
+
* <br/> See Also: {@link https://opensearch.org/docs/latest/api-reference/index-apis/get-settings/ OpenSearch - Get Settings}
|
|
1245
|
+
*
|
|
1246
|
+
* @memberOf API-Index
|
|
1247
|
+
*
|
|
1248
|
+
* @param {Object} params
|
|
1249
|
+
* @param {string} [params.index] - A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices
|
|
1250
|
+
* @param {string} [params.name] - The name of the settings that should be included
|
|
1251
|
+
* @param {string} [params.cluster_manager_timeout] - Specify timeout for connection to cluster_manager
|
|
1252
|
+
* @param {boolean} [params.ignore_unavailable] - Whether specified concrete indices should be ignored when unavailable (missing or closed)
|
|
1253
|
+
* @param {boolean} [params.allow_no_indices] - Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
|
|
1254
|
+
* @param {string} [params.expand_wildcards] - Whether to expand wildcard expression to concrete indices that are open, closed or both. (options: open, closed, hidden, none, all)
|
|
1255
|
+
* @param {boolean} [params.flat_settings=false] - Return settings in flat format
|
|
1256
|
+
* @param {boolean} [params.local=false] - Return local information, do not retrieve the state from cluster_manager node
|
|
1257
|
+
* @param {boolean} [params.include_defaults] - Whether to return all default setting for each of the indices.
|
|
1258
|
+
*
|
|
1259
|
+
* @param {Object} options - Options for {@link Transport#request}
|
|
1260
|
+
* @param {function} callback - Callback that handles errors and response
|
|
1261
|
+
*
|
|
1262
|
+
* @returns {{abort: function(), then: function(), catch: function()}|Promise<never>|*}
|
|
1263
|
+
*/
|
|
855
1264
|
IndicesApi.prototype.getSettings = function indicesGetSettingsApi(params, options, callback) {
|
|
856
1265
|
[params, options, callback] = normalizeArguments(params, options, callback);
|
|
857
1266
|
|
|
@@ -884,6 +1293,22 @@ IndicesApi.prototype.getSettings = function indicesGetSettingsApi(params, option
|
|
|
884
1293
|
return this.transport.request(request, options, callback);
|
|
885
1294
|
};
|
|
886
1295
|
|
|
1296
|
+
/**
|
|
1297
|
+
* Returns an index template. (Deprecated. Use IndicesApi#getIndexTemplate instead)
|
|
1298
|
+
*
|
|
1299
|
+
* @memberOf API-Index
|
|
1300
|
+
*
|
|
1301
|
+
* @param {Object} params
|
|
1302
|
+
* @param {string} [params.name] - The comma separated names of the index templates
|
|
1303
|
+
* @param {boolean} [params.flat_settings=false] - Return settings in flat format
|
|
1304
|
+
* @param {string} [params.cluster_manager_timeout] - Explicit operation timeout for connection to cluster_manager node
|
|
1305
|
+
* @param {boolean} [params.local=false] - Return local information, do not retrieve the state from cluster_manager node
|
|
1306
|
+
*
|
|
1307
|
+
* @param {Object} options - Options for {@link Transport#request}
|
|
1308
|
+
* @param {function} callback - Callback that handles errors and response
|
|
1309
|
+
*
|
|
1310
|
+
* @returns {{abort: function(), then: function(), catch: function()}|Promise<never>|*}
|
|
1311
|
+
*/
|
|
887
1312
|
IndicesApi.prototype.getTemplate = function indicesGetTemplateApi(params, options, callback) {
|
|
888
1313
|
[params, options, callback] = normalizeArguments(params, options, callback);
|
|
889
1314
|
|
|
@@ -910,6 +1335,22 @@ IndicesApi.prototype.getTemplate = function indicesGetTemplateApi(params, option
|
|
|
910
1335
|
return this.transport.request(request, options, callback);
|
|
911
1336
|
};
|
|
912
1337
|
|
|
1338
|
+
/**
|
|
1339
|
+
* Returns a progress status of current upgrade. (Deprecated. Use API-Document#reindex instead)
|
|
1340
|
+
*
|
|
1341
|
+
* @memberOf API-Index
|
|
1342
|
+
*
|
|
1343
|
+
* @param {Object} params
|
|
1344
|
+
* @param {string} params.index - A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices
|
|
1345
|
+
* @param {boolean} [params.ignore_unavailable] - Whether specified concrete indices should be ignored when unavailable (missing or closed)
|
|
1346
|
+
* @param {boolean} [params.allow_no_indices] - Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
|
|
1347
|
+
* @param {string} [params.expand_wildcards] - Whether to expand wildcard expression to concrete indices that are open, closed or both. (options: open, closed, hidden, none, all)
|
|
1348
|
+
*
|
|
1349
|
+
* @param {Object} options - Options for {@link Transport#request}
|
|
1350
|
+
* @param {function} callback - Callback that handles errors and response
|
|
1351
|
+
*
|
|
1352
|
+
* @returns {{abort: function(), then: function(), catch: function()}|Promise<never>|*}
|
|
1353
|
+
*/
|
|
913
1354
|
IndicesApi.prototype.getUpgrade = function indicesGetUpgradeApi(params, options, callback) {
|
|
914
1355
|
[params, options, callback] = normalizeArguments(params, options, callback);
|
|
915
1356
|
|
|
@@ -931,6 +1372,26 @@ IndicesApi.prototype.getUpgrade = function indicesGetUpgradeApi(params, options,
|
|
|
931
1372
|
return this.transport.request(request, options, callback);
|
|
932
1373
|
};
|
|
933
1374
|
|
|
1375
|
+
/**
|
|
1376
|
+
* ROpens an index.
|
|
1377
|
+
* <br/> See Also: {@link https://opensearch.org/docs/latest/api-reference/index-apis/open-index/ OpenSearch - Open Index}
|
|
1378
|
+
*
|
|
1379
|
+
* @memberOf API-Index
|
|
1380
|
+
*
|
|
1381
|
+
* @param {Object} params
|
|
1382
|
+
* @param {string} params.index - A comma separated list of indices to open
|
|
1383
|
+
* @param {string} [params.timeout] - Explicit operation timeout
|
|
1384
|
+
* @param {string} [params.cluster_manager_timeout] - Explicit operation timeout for connection to cluster_manager node
|
|
1385
|
+
* @param {boolean} [params.ignore_unavailable] - Whether specified concrete indices should be ignored when unavailable (missing or closed)
|
|
1386
|
+
* @param {boolean} [params.allow_no_indices] - Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
|
|
1387
|
+
* @param {string} [params.expand_wildcards] - Whether to expand wildcard expression to concrete indices that are open, closed or both. (options: open, closed, hidden, none, all)
|
|
1388
|
+
* @param {string} [params.wait_for_active_shards] - Sets the number of active shards to wait for before the operation returns.
|
|
1389
|
+
*
|
|
1390
|
+
* @param {Object} options - Options for {@link Transport#request}
|
|
1391
|
+
* @param {function} callback - Callback that handles errors and response
|
|
1392
|
+
*
|
|
1393
|
+
* @returns {{abort: function(), then: function(), catch: function()}|Promise<never>|*}
|
|
1394
|
+
*/
|
|
934
1395
|
IndicesApi.prototype.open = function indicesOpenApi(params, options, callback) {
|
|
935
1396
|
[params, options, callback] = normalizeArguments(params, options, callback);
|
|
936
1397
|
|
|
@@ -958,6 +1419,24 @@ IndicesApi.prototype.open = function indicesOpenApi(params, options, callback) {
|
|
|
958
1419
|
return this.transport.request(request, options, callback);
|
|
959
1420
|
};
|
|
960
1421
|
|
|
1422
|
+
/**
|
|
1423
|
+
* Creates or updates an alias.
|
|
1424
|
+
* <br/> See Also: {@link https://opensearch.org/docs/latest/opensearch/index-alias/ OpenSearch - Index Aliases}
|
|
1425
|
+
*
|
|
1426
|
+
* @memberOf API-Index
|
|
1427
|
+
*
|
|
1428
|
+
* @param {Object} params
|
|
1429
|
+
* @param {string} params.index - A comma-separated list of index names the alias should point to (supports wildcards); use `_all` to perform the operation on all indices.
|
|
1430
|
+
* @param {string} params.name - The name of the alias to be created or updated
|
|
1431
|
+
* @param {string} [params.timeout] - Explicit timestamp for the document
|
|
1432
|
+
* @param {string} [params.cluster_manager_timeout] - Specify timeout for connection to cluster_manager
|
|
1433
|
+
* @param {Object} [params.body] - The settings for the alias, such as `routing` or `filter`
|
|
1434
|
+
*
|
|
1435
|
+
* @param {Object} options - Options for {@link Transport#request}
|
|
1436
|
+
* @param {function} callback - Callback that handles errors and response
|
|
1437
|
+
*
|
|
1438
|
+
* @returns {{abort: function(), then: function(), catch: function()}|Promise<never>|*}
|
|
1439
|
+
*/
|
|
961
1440
|
IndicesApi.prototype.putAlias = function indicesPutAliasApi(params, options, callback) {
|
|
962
1441
|
[params, options, callback] = normalizeArguments(params, options, callback);
|
|
963
1442
|
|
|
@@ -1000,6 +1479,24 @@ IndicesApi.prototype.putAlias = function indicesPutAliasApi(params, options, cal
|
|
|
1000
1479
|
return this.transport.request(request, options, callback);
|
|
1001
1480
|
};
|
|
1002
1481
|
|
|
1482
|
+
/**
|
|
1483
|
+
* Creates or updates an index template.
|
|
1484
|
+
* <br/> See Also: {@link https://opensearch.org/docs/latest/opensearch/index-templates/ OpenSearch - Index Templates}
|
|
1485
|
+
*
|
|
1486
|
+
* @memberOf API-Index
|
|
1487
|
+
*
|
|
1488
|
+
* @param {Object} params
|
|
1489
|
+
* @param {string} params.name - The name of the template
|
|
1490
|
+
* @param {Object} params.body - The template definition
|
|
1491
|
+
* @param {boolean} [params.create] - Whether the index template should only be added if new or can also replace an existing one
|
|
1492
|
+
* @param {string} [params.cause] - User defined reason for creating/updating the index template
|
|
1493
|
+
* @param {string} [params.cluster_manager_timeout] - Specify timeout for connection to cluster_manager
|
|
1494
|
+
*
|
|
1495
|
+
* @param {Object} options - Options for {@link Transport#request}
|
|
1496
|
+
* @param {function} callback - Callback that handles errors and response
|
|
1497
|
+
*
|
|
1498
|
+
* @returns {{abort: function(), then: function(), catch: function()}|Promise<never>|*}
|
|
1499
|
+
*/
|
|
1003
1500
|
IndicesApi.prototype.putIndexTemplate = function indicesPutIndexTemplateApi(
|
|
1004
1501
|
params,
|
|
1005
1502
|
options,
|
|
@@ -1035,6 +1532,27 @@ IndicesApi.prototype.putIndexTemplate = function indicesPutIndexTemplateApi(
|
|
|
1035
1532
|
return this.transport.request(request, options, callback);
|
|
1036
1533
|
};
|
|
1037
1534
|
|
|
1535
|
+
/**
|
|
1536
|
+
* Updates index mappings.
|
|
1537
|
+
* <br/> See Also: {@link https://opensearch.org/docs/latest/api-reference/index-apis/put-mapping/ OpenSearch - Create or Update Mapping}
|
|
1538
|
+
*
|
|
1539
|
+
* @memberOf API-Index
|
|
1540
|
+
*
|
|
1541
|
+
* @param {Object} params
|
|
1542
|
+
* @param {string} params.index - A comma-separated list of index names the mapping should be added to (supports wildcards); use `_all` or omit to add the mapping on all indices.
|
|
1543
|
+
* @param {Object} params.body - The mapping definition
|
|
1544
|
+
* @param {string} [params.timeout] - Explicit operation timeout
|
|
1545
|
+
* @param {string} [params.cluster_manager_timeout] - Specify timeout for connection to cluster_manager
|
|
1546
|
+
* @param {boolean} [params.ignore_unavailable] - Whether specified concrete indices should be ignored when unavailable (missing or closed)
|
|
1547
|
+
* @param {boolean} [params.allow_no_indices] - Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
|
|
1548
|
+
* @param {string} [params.expand_wildcards] - Whether to expand wildcard expression to concrete indices that are open, closed or both. (options: open, closed, hidden, none, all)
|
|
1549
|
+
* @param {boolean} [params.write_index_only] - When true, applies mappings only to the write index of an alias or data stream
|
|
1550
|
+
*
|
|
1551
|
+
* @param {Object} options - Options for {@link Transport#request}
|
|
1552
|
+
* @param {function} callback - Callback that handles errors and response
|
|
1553
|
+
*
|
|
1554
|
+
* @returns {{abort: function(), then: function(), catch: function()}|Promise<never>|*}
|
|
1555
|
+
*/
|
|
1038
1556
|
IndicesApi.prototype.putMapping = function indicesPutMappingApi(params, options, callback) {
|
|
1039
1557
|
[params, options, callback] = normalizeArguments(params, options, callback);
|
|
1040
1558
|
|
|
@@ -1085,6 +1603,28 @@ IndicesApi.prototype.putMapping = function indicesPutMappingApi(params, options,
|
|
|
1085
1603
|
return this.transport.request(request, options, callback);
|
|
1086
1604
|
};
|
|
1087
1605
|
|
|
1606
|
+
/**
|
|
1607
|
+
* Updates the index settings.
|
|
1608
|
+
* <br/> See Also: {@link https://opensearch.org/docs/latest/api-reference/index-apis/update-settings/ OpenSearch - Update Settings}
|
|
1609
|
+
*
|
|
1610
|
+
* @memberOf API-Index
|
|
1611
|
+
*
|
|
1612
|
+
* @param {Object} params
|
|
1613
|
+
* @param {Object} params.body - The index settings to be updated
|
|
1614
|
+
* @param {string} [params.index] - A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices
|
|
1615
|
+
* @param {string} [params.cluster_manager_timeout] - Specify timeout for connection to cluster_manager
|
|
1616
|
+
* @param {string} [params.timeout] - Explicit operation timeout
|
|
1617
|
+
* @param {boolean} [params.preserve_existing=false] - Whether to update existing settings. If set to `true` existing settings on an index remain unchanged
|
|
1618
|
+
* @param {boolean} [params.ignore_unavailable] - Whether specified concrete indices should be ignored when unavailable (missing or closed)
|
|
1619
|
+
* @param {boolean} [params.allow_no_indices] - Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
|
|
1620
|
+
* @param {string} [params.expand_wildcards] - Whether to expand wildcard expression to concrete indices that are open, closed or both. (options: open, closed, hidden, none, all)
|
|
1621
|
+
* @param {boolean} [params.flat_settings=false] - Return settings in flat format
|
|
1622
|
+
*
|
|
1623
|
+
* @param {Object} options - Options for {@link Transport#request}
|
|
1624
|
+
* @param {function} callback - Callback that handles errors and response
|
|
1625
|
+
*
|
|
1626
|
+
* @returns {{abort: function(), then: function(), catch: function()}|Promise<never>|*}
|
|
1627
|
+
*/
|
|
1088
1628
|
IndicesApi.prototype.putSettings = function indicesPutSettingsApi(params, options, callback) {
|
|
1089
1629
|
[params, options, callback] = normalizeArguments(params, options, callback);
|
|
1090
1630
|
|
|
@@ -1117,6 +1657,23 @@ IndicesApi.prototype.putSettings = function indicesPutSettingsApi(params, option
|
|
|
1117
1657
|
return this.transport.request(request, options, callback);
|
|
1118
1658
|
};
|
|
1119
1659
|
|
|
1660
|
+
/**
|
|
1661
|
+
* Creates or updates an index template. (Deprecated. Use IndicesApi#putIndexTemplate instead)
|
|
1662
|
+
*
|
|
1663
|
+
* @memberOf API-Index
|
|
1664
|
+
*
|
|
1665
|
+
* @param {Object} params
|
|
1666
|
+
* @param {string} params.name - The name of the template
|
|
1667
|
+
* @param {Object} params.body - The template definition
|
|
1668
|
+
* @param {number} [params.order] - The order for this template when merging multiple matching ones (higher numbers are merged later, overriding the lower numbers)
|
|
1669
|
+
* @param {boolean} [params.create] - Whether the index template should only be added if new or can also replace an existing one
|
|
1670
|
+
* @param {string} [params.cluster_manager_timeout] - Specify timeout for connection to cluster_manager
|
|
1671
|
+
*
|
|
1672
|
+
* @param {Object} options - Options for {@link Transport#request}
|
|
1673
|
+
* @param {function} callback - Callback that handles errors and response
|
|
1674
|
+
*
|
|
1675
|
+
* @returns {{abort: function(), then: function(), catch: function()}|Promise<never>|*}
|
|
1676
|
+
*/
|
|
1120
1677
|
IndicesApi.prototype.putTemplate = function indicesPutTemplateApi(params, options, callback) {
|
|
1121
1678
|
[params, options, callback] = normalizeArguments(params, options, callback);
|
|
1122
1679
|
|
|
@@ -1148,6 +1705,21 @@ IndicesApi.prototype.putTemplate = function indicesPutTemplateApi(params, option
|
|
|
1148
1705
|
return this.transport.request(request, options, callback);
|
|
1149
1706
|
};
|
|
1150
1707
|
|
|
1708
|
+
/**
|
|
1709
|
+
* Returns information about ongoing index shard recoveries.
|
|
1710
|
+
*
|
|
1711
|
+
* @memberOf API-Index
|
|
1712
|
+
*
|
|
1713
|
+
* @param {Object} params
|
|
1714
|
+
* @param {string} [params.index] - A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices
|
|
1715
|
+
* @param {boolean} [params.detailed] - Whether to display detailed information about shard recovery
|
|
1716
|
+
* @param {boolean} [params.active_only] - Display only those recoveries that are currently on-going
|
|
1717
|
+
*
|
|
1718
|
+
* @param {Object} options - Options for {@link Transport#request}
|
|
1719
|
+
* @param {function} callback - Callback that handles errors and response
|
|
1720
|
+
*
|
|
1721
|
+
* @returns {{abort: function(), then: function(), catch: function()}|Promise<never>|*}
|
|
1722
|
+
*/
|
|
1151
1723
|
IndicesApi.prototype.recovery = function indicesRecoveryApi(params, options, callback) {
|
|
1152
1724
|
[params, options, callback] = normalizeArguments(params, options, callback);
|
|
1153
1725
|
|
|
@@ -1174,6 +1746,22 @@ IndicesApi.prototype.recovery = function indicesRecoveryApi(params, options, cal
|
|
|
1174
1746
|
return this.transport.request(request, options, callback);
|
|
1175
1747
|
};
|
|
1176
1748
|
|
|
1749
|
+
/**
|
|
1750
|
+
* Performs the refresh operation in one or more indices.
|
|
1751
|
+
*
|
|
1752
|
+
* @memberOf API-Index
|
|
1753
|
+
*
|
|
1754
|
+
* @param {Object} params
|
|
1755
|
+
* @param {string} [params.index] - A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices
|
|
1756
|
+
* @param {boolean} [params.ignore_unavailable] - Whether specified concrete indices should be ignored when unavailable (missing or closed)
|
|
1757
|
+
* @param {boolean} [params.allow_no_indices] - Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
|
|
1758
|
+
* @param {string} [params.expand_wildcards] - Whether to expand wildcard expression to concrete indices that are open, closed or both. (options: open, closed, hidden, none, all)
|
|
1759
|
+
*
|
|
1760
|
+
* @param {Object} options - Options for {@link Transport#request}
|
|
1761
|
+
* @param {function} callback - Callback that handles errors and response
|
|
1762
|
+
*
|
|
1763
|
+
* @returns {{abort: function(), then: function(), catch: function()}|Promise<never>|*}
|
|
1764
|
+
*/
|
|
1177
1765
|
IndicesApi.prototype.refresh = function indicesRefreshApi(params, options, callback) {
|
|
1178
1766
|
[params, options, callback] = normalizeArguments(params, options, callback);
|
|
1179
1767
|
|
|
@@ -1200,6 +1788,20 @@ IndicesApi.prototype.refresh = function indicesRefreshApi(params, options, callb
|
|
|
1200
1788
|
return this.transport.request(request, options, callback);
|
|
1201
1789
|
};
|
|
1202
1790
|
|
|
1791
|
+
/**
|
|
1792
|
+
* Returns information about any matching indices, aliases, and data streams
|
|
1793
|
+
*
|
|
1794
|
+
* @memberOf API-Index
|
|
1795
|
+
*
|
|
1796
|
+
* @param {Object} params
|
|
1797
|
+
* @param {string} [params.name] - A comma-separated list of names or wildcard expressions
|
|
1798
|
+
* @param {string} [params.expand_wildcards=open] - Whether wildcard expressions should get expanded to open or closed indices (options: open, closed, hidden, none, all)
|
|
1799
|
+
*
|
|
1800
|
+
* @param {Object} options - Options for {@link Transport#request}
|
|
1801
|
+
* @param {function} callback - Callback that handles errors and response
|
|
1802
|
+
*
|
|
1803
|
+
* @returns {{abort: function(), then: function(), catch: function()}|Promise<never>|*}
|
|
1804
|
+
*/
|
|
1203
1805
|
IndicesApi.prototype.resolveIndex = function indicesResolveIndexApi(params, options, callback) {
|
|
1204
1806
|
[params, options, callback] = normalizeArguments(params, options, callback);
|
|
1205
1807
|
|
|
@@ -1227,6 +1829,26 @@ IndicesApi.prototype.resolveIndex = function indicesResolveIndexApi(params, opti
|
|
|
1227
1829
|
return this.transport.request(request, options, callback);
|
|
1228
1830
|
};
|
|
1229
1831
|
|
|
1832
|
+
/**
|
|
1833
|
+
* Updates an alias to point to a new index when the existing index is considered to be too large or too old.
|
|
1834
|
+
* <br/> See Also: {@link https://opensearch.org/docs/latest/opensearch/data-streams/#step-5-rollover-a-data-stream OpenSearch - Rollover a data stream}
|
|
1835
|
+
*
|
|
1836
|
+
* @memberOf API-Index
|
|
1837
|
+
*
|
|
1838
|
+
* @param {Object} params
|
|
1839
|
+
* @param {string} params.alias - The name of the alias to rollover
|
|
1840
|
+
* @param {string} [params.new_index] - The name of the rollover index
|
|
1841
|
+
* @param {string} [params.timeout] - Explicit operation timeout
|
|
1842
|
+
* @param {boolean} [params.dry_run=false] - If set to true the rollover action will only be validated but not actually performed even if a condition matches.
|
|
1843
|
+
* @param {string} [params.cluster_manager_timeout] - Specify timeout for connection to cluster_manager
|
|
1844
|
+
* @param {string} [params.wait_for_active_shards] - Set the number of active shards to wait for on the newly created rollover index before the operation returns.
|
|
1845
|
+
* @param {Object} [params.body] - The conditions that needs to be met for executing rollover
|
|
1846
|
+
*
|
|
1847
|
+
* @param {Object} options - Options for {@link Transport#request}
|
|
1848
|
+
* @param {function} callback - Callback that handles errors and response
|
|
1849
|
+
*
|
|
1850
|
+
* @returns {{abort: function(), then: function(), catch: function()}|Promise<never>|*}
|
|
1851
|
+
*/
|
|
1230
1852
|
IndicesApi.prototype.rollover = function indicesRolloverApi(params, options, callback) {
|
|
1231
1853
|
[params, options, callback] = normalizeArguments(params, options, callback);
|
|
1232
1854
|
|
|
@@ -1271,6 +1893,23 @@ IndicesApi.prototype.rollover = function indicesRolloverApi(params, options, cal
|
|
|
1271
1893
|
return this.transport.request(request, options, callback);
|
|
1272
1894
|
};
|
|
1273
1895
|
|
|
1896
|
+
/**
|
|
1897
|
+
* Provides low-level information about segments in a Lucene index.
|
|
1898
|
+
*
|
|
1899
|
+
* @memberOf API-Index
|
|
1900
|
+
*
|
|
1901
|
+
* @param {Object} params
|
|
1902
|
+
* @param {string} [params.index] - A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices
|
|
1903
|
+
* @param {boolean} [params.ignore_unavailable] - Whether specified concrete indices should be ignored when unavailable (missing or closed)
|
|
1904
|
+
* @param {boolean} [params.allow_no_indices] - Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
|
|
1905
|
+
* @param {string} [params.expand_wildcards] - Whether to expand wildcard expression to concrete indices that are open, closed or both. (options: open, closed, hidden, none, all)
|
|
1906
|
+
* @param {boolean} [params.verbose] - Includes detailed memory usage by Lucene.
|
|
1907
|
+
*
|
|
1908
|
+
* @param {Object} options - Options for {@link Transport#request}
|
|
1909
|
+
* @param {function} callback - Callback that handles errors and response
|
|
1910
|
+
*
|
|
1911
|
+
* @returns {{abort: function(), then: function(), catch: function()}|Promise<never>|*}
|
|
1912
|
+
*/
|
|
1274
1913
|
IndicesApi.prototype.segments = function indicesSegmentsApi(params, options, callback) {
|
|
1275
1914
|
[params, options, callback] = normalizeArguments(params, options, callback);
|
|
1276
1915
|
|
|
@@ -1297,6 +1936,23 @@ IndicesApi.prototype.segments = function indicesSegmentsApi(params, options, cal
|
|
|
1297
1936
|
return this.transport.request(request, options, callback);
|
|
1298
1937
|
};
|
|
1299
1938
|
|
|
1939
|
+
/**
|
|
1940
|
+
* Provides store information for shard copies of indices.
|
|
1941
|
+
*
|
|
1942
|
+
* @memberOf API-Index
|
|
1943
|
+
*
|
|
1944
|
+
* @param {Object} params
|
|
1945
|
+
* @param {string} [params.index] - A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices
|
|
1946
|
+
* @param {string} [params.status] - A comma-separated list of statuses used to filter on shards to get store information for (options: green, yellow, red, all)
|
|
1947
|
+
* @param {boolean} [params.ignore_unavailable] - Whether specified concrete indices should be ignored when unavailable (missing or closed)
|
|
1948
|
+
* @param {boolean} [params.allow_no_indices] - Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
|
|
1949
|
+
* @param {string} [params.expand_wildcards] - Whether to expand wildcard expression to concrete indices that are open, closed or both. (options: open, closed, hidden, none, all)
|
|
1950
|
+
*
|
|
1951
|
+
* @param {Object} options - Options for {@link Transport#request}
|
|
1952
|
+
* @param {function} callback - Callback that handles errors and response
|
|
1953
|
+
*
|
|
1954
|
+
* @returns {{abort: function(), then: function(), catch: function()}|Promise<never>|*}
|
|
1955
|
+
*/
|
|
1300
1956
|
IndicesApi.prototype.shardStores = function indicesShardStoresApi(params, options, callback) {
|
|
1301
1957
|
[params, options, callback] = normalizeArguments(params, options, callback);
|
|
1302
1958
|
|
|
@@ -1323,6 +1979,26 @@ IndicesApi.prototype.shardStores = function indicesShardStoresApi(params, option
|
|
|
1323
1979
|
return this.transport.request(request, options, callback);
|
|
1324
1980
|
};
|
|
1325
1981
|
|
|
1982
|
+
/**
|
|
1983
|
+
* Allow to shrink an existing index into a new index with fewer primary shards.
|
|
1984
|
+
* <br/> See Also: {@link https://opensearch.org/docs/latest/api-reference/index-apis/shrink-index/ OpenSearch - Shrink Index}
|
|
1985
|
+
*
|
|
1986
|
+
* @memberOf API-Index
|
|
1987
|
+
*
|
|
1988
|
+
* @param {Object} params
|
|
1989
|
+
* @param {string} params.index - The name of the source index to shrink
|
|
1990
|
+
* @param {string} params.target - The name of the target index to shrink into
|
|
1991
|
+
* @param {boolean} [params.copy_settings] - whether or not to copy settings from the source index (defaults to false)
|
|
1992
|
+
* @param {string} [params.timeout] - Explicit operation timeout
|
|
1993
|
+
* @param {string} [params.cluster_manager_timeout] - Specify timeout for connection to cluster_manager
|
|
1994
|
+
* @param {string} [params.wait_for_active_shards] - Set the number of active shards to wait for on the shrunken index before the operation returns.
|
|
1995
|
+
* @param {Object} [params.body] - The configuration for the target index (`settings` and `aliases`)
|
|
1996
|
+
*
|
|
1997
|
+
* @param {Object} options - Options for {@link Transport#request}
|
|
1998
|
+
* @param {function} callback - Callback that handles errors and response
|
|
1999
|
+
*
|
|
2000
|
+
* @returns {{abort: function(), then: function(), catch: function()}|Promise<never>|*}
|
|
2001
|
+
*/
|
|
1326
2002
|
IndicesApi.prototype.shrink = function indicesShrinkApi(params, options, callback) {
|
|
1327
2003
|
[params, options, callback] = normalizeArguments(params, options, callback);
|
|
1328
2004
|
|
|
@@ -1360,6 +2036,23 @@ IndicesApi.prototype.shrink = function indicesShrinkApi(params, options, callbac
|
|
|
1360
2036
|
return this.transport.request(request, options, callback);
|
|
1361
2037
|
};
|
|
1362
2038
|
|
|
2039
|
+
/**
|
|
2040
|
+
* Simulate matching the given index name against the index templates in the system
|
|
2041
|
+
*
|
|
2042
|
+
* @memberOf API-Index
|
|
2043
|
+
*
|
|
2044
|
+
* @param {Object} params
|
|
2045
|
+
* @param {string} params.name - The name of the index (it must be a concrete index name)
|
|
2046
|
+
* @param {Object} [params.body] - New index template definition, which will be included in the simulation, as if it already exists in the system
|
|
2047
|
+
* @param {boolean} [params.create] - Whether the index template we optionally defined in the body should only be dry-run added if new or can also replace an existing one
|
|
2048
|
+
* @param {string} [params.cause] - User defined reason for dry-run creating the new template for simulation purposes
|
|
2049
|
+
* @param {string} [params.cluster_manager_timeout] - Specify timeout for connection to cluster_manager
|
|
2050
|
+
*
|
|
2051
|
+
* @param {Object} options - Options for {@link Transport#request}
|
|
2052
|
+
* @param {function} callback - Callback that handles errors and response
|
|
2053
|
+
*
|
|
2054
|
+
* @returns {{abort: function(), then: function(), catch: function()}|Promise<never>|*}
|
|
2055
|
+
*/
|
|
1363
2056
|
IndicesApi.prototype.simulateIndexTemplate = function indicesSimulateIndexTemplateApi(
|
|
1364
2057
|
params,
|
|
1365
2058
|
options,
|
|
@@ -1391,6 +2084,23 @@ IndicesApi.prototype.simulateIndexTemplate = function indicesSimulateIndexTempla
|
|
|
1391
2084
|
return this.transport.request(request, options, callback);
|
|
1392
2085
|
};
|
|
1393
2086
|
|
|
2087
|
+
/**
|
|
2088
|
+
* Simulate resolving the given template name or body (Deprecated. Use IndicesApi#simulateIndexTemplate instead)
|
|
2089
|
+
*
|
|
2090
|
+
* @memberOf API-Index
|
|
2091
|
+
*
|
|
2092
|
+
* @param {Object} params
|
|
2093
|
+
* @param {string} [params.name] - The name of the index template
|
|
2094
|
+
* @param {boolean} [params.create] - Whether the index template we optionally defined in the body should only be dry-run added if new or can also replace an existing one
|
|
2095
|
+
* @param {string} [params.cause] - User defined reason for dry-run creating the new template for simulation purposes
|
|
2096
|
+
* @param {string} [params.cluster_manager_timeout] - Specify timeout for connection to cluster_manager
|
|
2097
|
+
* @param {Object} [params.body] - New index template definition to be simulated, if no index template name is specified
|
|
2098
|
+
*
|
|
2099
|
+
* @param {Object} options - Options for {@link Transport#request}
|
|
2100
|
+
* @param {function} callback - Callback that handles errors and response
|
|
2101
|
+
*
|
|
2102
|
+
* @returns {{abort: function(), then: function(), catch: function()}|Promise<never>|*}
|
|
2103
|
+
*/
|
|
1394
2104
|
IndicesApi.prototype.simulateTemplate = function indicesSimulateTemplateApi(
|
|
1395
2105
|
params,
|
|
1396
2106
|
options,
|
|
@@ -1421,6 +2131,26 @@ IndicesApi.prototype.simulateTemplate = function indicesSimulateTemplateApi(
|
|
|
1421
2131
|
return this.transport.request(request, options, callback);
|
|
1422
2132
|
};
|
|
1423
2133
|
|
|
2134
|
+
/**
|
|
2135
|
+
* Allows you to split an existing index into a new index with more primary shards.
|
|
2136
|
+
* <br/> See Also: {@link https://opensearch.org/docs/latest/api-reference/index-apis/split/ OpenSearch - Split Index}
|
|
2137
|
+
*
|
|
2138
|
+
* @memberOf API-Index
|
|
2139
|
+
*
|
|
2140
|
+
* @param {Object} params
|
|
2141
|
+
* @param {string} params.index - The name of the source index to split
|
|
2142
|
+
* @param {string} params.target - The name of the target index to split into
|
|
2143
|
+
* @param {boolean} [params.copy_settings] - whether or not to copy settings from the source index (defaults to false)
|
|
2144
|
+
* @param {string} [params.timeout] - Explicit operation timeout
|
|
2145
|
+
* @param {string} [params.cluster_manager_timeout] - Specify timeout for connection to cluster_manager
|
|
2146
|
+
* @param {string} [params.wait_for_active_shards] - Set the number of active shards to wait for on the shrunken index before the operation returns.
|
|
2147
|
+
* @param {Object} [params.body] - The configuration for the target index (`settings` and `aliases`)
|
|
2148
|
+
*
|
|
2149
|
+
* @param {Object} options - Options for {@link Transport#request}
|
|
2150
|
+
* @param {function} callback - Callback that handles errors and response
|
|
2151
|
+
*
|
|
2152
|
+
* @returns {{abort: function(), then: function(), catch: function()}|Promise<never>|*}
|
|
2153
|
+
*/
|
|
1424
2154
|
IndicesApi.prototype.split = function indicesSplitApi(params, options, callback) {
|
|
1425
2155
|
[params, options, callback] = normalizeArguments(params, options, callback);
|
|
1426
2156
|
|
|
@@ -1458,6 +2188,30 @@ IndicesApi.prototype.split = function indicesSplitApi(params, options, callback)
|
|
|
1458
2188
|
return this.transport.request(request, options, callback);
|
|
1459
2189
|
};
|
|
1460
2190
|
|
|
2191
|
+
/**
|
|
2192
|
+
* Provides statistics on operations happening in an index.
|
|
2193
|
+
*
|
|
2194
|
+
* @memberOf API-Index
|
|
2195
|
+
*
|
|
2196
|
+
* @param {Object} params
|
|
2197
|
+
* @param {string} [params.metric] - Limit the information returned the specific metrics. (options: _all, completion, docs, fielddata, query_cache, flush, get, indexing, merge, request_cache, refresh, search, segments, store, warmer, suggest)
|
|
2198
|
+
* @param {string} [params.index] - A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices
|
|
2199
|
+
* @param {string} [params.completion_fields] - A comma-separated list of fields for `fielddata` and `suggest` index metric (supports wildcards)
|
|
2200
|
+
* @param {string} [params.fielddata_fields] - A comma-separated list of fields for `fielddata` index metric (supports wildcards)
|
|
2201
|
+
* @param {string} [params.fields] - A comma-separated list of fields for `fielddata` and `completion` index metric (supports wildcards)
|
|
2202
|
+
* @param {string} [params.groups] - A comma-separated list of search groups for `search` index metric
|
|
2203
|
+
* @param {string} [params.level] - Return stats aggregated at cluster, index or shard level (options: cluster, indices, shards)
|
|
2204
|
+
* @param {string} [params.types] - A comma-separated list of document types for the `indexing` index metric
|
|
2205
|
+
* @param {boolean} [params.include_segment_file_sizes] - Whether to report the aggregated disk usage of each one of the Lucene index files (only applies if segment stats are requested)
|
|
2206
|
+
* @param {boolean} [params.include_unloaded_segments] - If set to true segment stats will include stats for segments that are not currently loaded into memory
|
|
2207
|
+
* @param {string} [params.expand_wildcards] - Whether to expand wildcard expression to concrete indices that are open, closed or both. (options: open, closed, hidden, none, all)
|
|
2208
|
+
* @param {boolean} [params.forbid_closed_indices] - If set to false stats will also collected from closed indices if explicitly specified or if expand_wildcards expands to closed indices
|
|
2209
|
+
*
|
|
2210
|
+
* @param {Object} options - Options for {@link Transport#request}
|
|
2211
|
+
* @param {function} callback - Callback that handles errors and response
|
|
2212
|
+
*
|
|
2213
|
+
* @returns {{abort: function(), then: function(), catch: function()}|Promise<never>|*}
|
|
2214
|
+
*/
|
|
1461
2215
|
IndicesApi.prototype.stats = function indicesStatsApi(params, options, callback) {
|
|
1462
2216
|
[params, options, callback] = normalizeArguments(params, options, callback);
|
|
1463
2217
|
|
|
@@ -1490,6 +2244,22 @@ IndicesApi.prototype.stats = function indicesStatsApi(params, options, callback)
|
|
|
1490
2244
|
return this.transport.request(request, options, callback);
|
|
1491
2245
|
};
|
|
1492
2246
|
|
|
2247
|
+
/**
|
|
2248
|
+
* Update an alias.
|
|
2249
|
+
* <br/> See Also: {@link https://opensearch.org/docs/latest/opensearch/index-alias/ OpenSearch - Index Aliases}
|
|
2250
|
+
*
|
|
2251
|
+
* @memberOf API-Index
|
|
2252
|
+
*
|
|
2253
|
+
* @param {Object} params
|
|
2254
|
+
* @param {Object} params.body - The definition of `actions` to perform
|
|
2255
|
+
* @param {string} [params.timeout] - Request timeout
|
|
2256
|
+
* @param {string} [params.cluster_manager_timeout] - Specify timeout for connection to cluster_manager
|
|
2257
|
+
*
|
|
2258
|
+
* @param {Object} options - Options for {@link Transport#request}
|
|
2259
|
+
* @param {function} callback - Callback that handles errors and response
|
|
2260
|
+
*
|
|
2261
|
+
* @returns {{abort: function(), then: function(), catch: function()}|Promise<never>|*}
|
|
2262
|
+
*/
|
|
1493
2263
|
IndicesApi.prototype.updateAliases = function indicesUpdateAliasesApi(params, options, callback) {
|
|
1494
2264
|
[params, options, callback] = normalizeArguments(params, options, callback);
|
|
1495
2265
|
|
|
@@ -1517,6 +2287,24 @@ IndicesApi.prototype.updateAliases = function indicesUpdateAliasesApi(params, op
|
|
|
1517
2287
|
return this.transport.request(request, options, callback);
|
|
1518
2288
|
};
|
|
1519
2289
|
|
|
2290
|
+
/**
|
|
2291
|
+
* Upgrades to the current version of Lucene.
|
|
2292
|
+
*
|
|
2293
|
+
* @memberOf API-Index
|
|
2294
|
+
*
|
|
2295
|
+
* @param {Object} params
|
|
2296
|
+
* @param {string} [params.index] - A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices
|
|
2297
|
+
* @param {boolean} [params.allow_no_indices] - Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
|
|
2298
|
+
* @param {string} [params.expand_wildcards] - Whether to expand wildcard expression to concrete indices that are open, closed or both. (options: open, closed, hidden, none, all)
|
|
2299
|
+
* @param {boolean} [params.ignore_unavailable] - Whether specified concrete indices should be ignored when unavailable (missing or closed)
|
|
2300
|
+
* @param {boolean} [params.wait_for_completion=false] - Specify whether the request should block until the all segments are upgraded
|
|
2301
|
+
* @param {boolean} [params.only_ancient_segments] - If true, only ancient (an older Lucene major release) segments will be upgraded
|
|
2302
|
+
*
|
|
2303
|
+
* @param {Object} options - Options for {@link Transport#request}
|
|
2304
|
+
* @param {function} callback - Callback that handles errors and response
|
|
2305
|
+
*
|
|
2306
|
+
* @returns {{abort: function(), then: function(), catch: function()}|Promise<never>|*}
|
|
2307
|
+
*/
|
|
1520
2308
|
IndicesApi.prototype.upgrade = function indicesUpgradeApi(params, options, callback) {
|
|
1521
2309
|
[params, options, callback] = normalizeArguments(params, options, callback);
|
|
1522
2310
|
|
|
@@ -1538,6 +2326,32 @@ IndicesApi.prototype.upgrade = function indicesUpgradeApi(params, options, callb
|
|
|
1538
2326
|
return this.transport.request(request, options, callback);
|
|
1539
2327
|
};
|
|
1540
2328
|
|
|
2329
|
+
/**
|
|
2330
|
+
* Allows a user to validate a potentially expensive query without executing it.
|
|
2331
|
+
*
|
|
2332
|
+
* @memberOf API-Index
|
|
2333
|
+
*
|
|
2334
|
+
* @param {Object} params
|
|
2335
|
+
* @param {string} params.index - A comma-separated list of index names to restrict the operation; use `_all` or empty string to perform the operation on all indices
|
|
2336
|
+
* @param {boolean} [params.explain] - Return detailed information about the error
|
|
2337
|
+
* @param {boolean} [params.ignore_unavailable] - Whether specified concrete indices should be ignored when unavailable (missing or closed)
|
|
2338
|
+
* @param {boolean} [params.allow_no_indices] - Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
|
|
2339
|
+
* @param {string} [params.expand_wildcards] - Whether to expand wildcard expression to concrete indices that are open, closed or both. (options: open, closed, hidden, none, all)
|
|
2340
|
+
* @param {string} [params.q] - Query in the Lucene query string syntax
|
|
2341
|
+
* @param {string} [params.analyzer] - The analyzer to use for the query string
|
|
2342
|
+
* @param {boolean} [params.analyze_wildcard=false] - Specify whether wildcard and prefix queries should be analyzed
|
|
2343
|
+
* @param {string} [params.default_operator=OR] - The default operator for query string query (options: AND, OR)
|
|
2344
|
+
* @param {string} [params.df] - The field to use as default where no field prefix is given in the query string
|
|
2345
|
+
* @param {boolean} [params.lenient] - Specify whether format-based query failures (such as providing text to a numeric field) should be ignored
|
|
2346
|
+
* @param {boolean} [params.rewrite] - Provide a more detailed explanation showing the actual Lucene query that will be executed.
|
|
2347
|
+
* @param {boolean} [params.all_shards] - Execute validation on all shards instead of one random shard per index
|
|
2348
|
+
* @param {Object} [params.body] - The query definition specified with the Query DSL
|
|
2349
|
+
*
|
|
2350
|
+
* @param {Object} options - Options for {@link Transport#request}
|
|
2351
|
+
* @param {function} callback - Callback that handles errors and response
|
|
2352
|
+
*
|
|
2353
|
+
* @returns {{abort: function(), then: function(), catch: function()}|Promise<never>|*}
|
|
2354
|
+
*/
|
|
1541
2355
|
IndicesApi.prototype.validateQuery = function indicesValidateQueryApi(params, options, callback) {
|
|
1542
2356
|
[params, options, callback] = normalizeArguments(params, options, callback);
|
|
1543
2357
|
|