@opensearch-project/opensearch 2.1.0 → 2.2.1

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.
Files changed (83) hide show
  1. package/.eslintrc.json +4 -1
  2. package/CHANGELOG.md +125 -6
  3. package/DEVELOPER_GUIDE.md +55 -5
  4. package/MAINTAINERS.md +10 -6
  5. package/RELEASING.md +8 -1
  6. package/USER_GUIDE.md +133 -63
  7. package/api/api/bulk.js +23 -0
  8. package/api/api/cat.js +319 -0
  9. package/api/api/clear_scroll.js +14 -0
  10. package/api/api/cluster.js +237 -0
  11. package/api/api/count.js +28 -0
  12. package/api/api/create.js +26 -0
  13. package/api/api/create_pit.js +88 -0
  14. package/api/api/dangling_indices.js +45 -0
  15. package/api/api/delete.js +23 -0
  16. package/api/api/delete_all_pits.js +53 -0
  17. package/api/api/delete_by_query.js +48 -0
  18. package/api/api/delete_by_query_rethrottle.js +14 -0
  19. package/api/api/delete_pit.js +61 -0
  20. package/api/api/delete_script.js +14 -0
  21. package/api/api/exists.js +25 -0
  22. package/api/api/exists_source.js +25 -0
  23. package/api/api/explain.js +27 -0
  24. package/api/api/features.js +24 -0
  25. package/api/api/field_caps.js +19 -0
  26. package/api/api/get.js +25 -0
  27. package/api/api/get_all_pits.js +53 -0
  28. package/api/api/get_script.js +16 -0
  29. package/api/api/get_script_context.js +11 -0
  30. package/api/api/get_script_languages.js +11 -0
  31. package/api/api/get_source.js +25 -0
  32. package/api/api/index.js +29 -0
  33. package/api/api/indices.js +815 -0
  34. package/api/api/info.js +11 -0
  35. package/api/api/ingest.js +89 -0
  36. package/api/api/mget.js +24 -0
  37. package/api/api/msearch.js +22 -0
  38. package/api/api/msearch_template.js +19 -0
  39. package/api/api/nodes.js +91 -0
  40. package/api/api/ping.js +11 -0
  41. package/api/api/put_script.js +17 -0
  42. package/api/api/rank_eval.js +19 -0
  43. package/api/api/reindex.js +22 -0
  44. package/api/api/reindex_rethrottle.js +14 -0
  45. package/api/api/render_search_template.js +14 -0
  46. package/api/api/scripts_painless_execute.js +13 -0
  47. package/api/api/scroll.js +17 -0
  48. package/api/api/search.js +60 -0
  49. package/api/api/search_shards.js +19 -0
  50. package/api/api/search_template.js +27 -0
  51. package/api/api/shutdown.js +3 -0
  52. package/api/api/snapshot.js +210 -0
  53. package/api/api/tasks.js +56 -0
  54. package/api/api/terms_enum.js +1 -0
  55. package/api/api/termvectors.js +26 -0
  56. package/api/api/update.js +28 -0
  57. package/api/api/update_by_query.js +50 -0
  58. package/api/api/update_by_query_rethrottle.js +14 -0
  59. package/api/index.js +28 -0
  60. package/api/new.d.ts +64 -0
  61. package/api/opensearch_dashboards.d.ts +4 -0
  62. package/api/requestParams.d.ts +16 -0
  63. package/api/types.d.ts +53 -6
  64. package/guides/advanced_index_actions.md +91 -0
  65. package/guides/bulk.md +166 -0
  66. package/guides/document_lifecycle.md +162 -0
  67. package/guides/index_lifecycle.md +152 -0
  68. package/guides/index_template.md +228 -0
  69. package/guides/search.md +217 -0
  70. package/index.d.ts +160 -0
  71. package/jenkins/release.JenkinsFile +2 -2
  72. package/lib/Connection.js +1 -1
  73. package/lib/Serializer.js +2 -2
  74. package/lib/Transport.js +23 -1
  75. package/lib/aws/AwsSigv4Signer.js +14 -5
  76. package/lib/aws/index.d.ts +1 -0
  77. package/lib/errors.d.ts +2 -2
  78. package/lib/errors.js +2 -2
  79. package/lib/pool/BaseConnectionPool.js +18 -9
  80. package/lib/pool/CloudConnectionPool.js +2 -2
  81. package/lib/pool/ConnectionPool.js +4 -4
  82. package/lib/pool/index.d.ts +35 -6
  83. package/package.json +13 -12
@@ -29,6 +29,8 @@
29
29
 
30
30
  'use strict';
31
31
 
32
+ /** @namespace API-Index */
33
+
32
34
  /* eslint camelcase: 0 */
33
35
  /* eslint no-unused-vars: 0 */
34
36
 
@@ -128,6 +130,25 @@ function IndicesApi(transport, ConfigurationError) {
128
130
  this[kConfigurationError] = ConfigurationError;
129
131
  }
130
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
+ */
131
152
  IndicesApi.prototype.addBlock = function indicesAddBlockApi(params, options, callback) {
132
153
  [params, options, callback] = normalizeArguments(params, options, callback);
133
154
 
@@ -165,6 +186,21 @@ IndicesApi.prototype.addBlock = function indicesAddBlockApi(params, options, cal
165
186
  return this.transport.request(request, options, callback);
166
187
  };
167
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
+ */
168
204
  IndicesApi.prototype.analyze = function indicesAnalyzeApi(params, options, callback) {
169
205
  [params, options, callback] = normalizeArguments(params, options, callback);
170
206
 
@@ -191,6 +227,27 @@ IndicesApi.prototype.analyze = function indicesAnalyzeApi(params, options, callb
191
227
  return this.transport.request(request, options, callback);
192
228
  };
193
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
+ */
194
251
  IndicesApi.prototype.clearCache = function indicesClearCacheApi(params, options, callback) {
195
252
  [params, options, callback] = normalizeArguments(params, options, callback);
196
253
 
@@ -217,6 +274,25 @@ IndicesApi.prototype.clearCache = function indicesClearCacheApi(params, options,
217
274
  return this.transport.request(request, options, callback);
218
275
  };
219
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
+ */
220
296
  IndicesApi.prototype.clone = function indicesCloneApi(params, options, callback) {
221
297
  [params, options, callback] = normalizeArguments(params, options, callback);
222
298
 
@@ -254,6 +330,26 @@ IndicesApi.prototype.clone = function indicesCloneApi(params, options, callback)
254
330
  return this.transport.request(request, options, callback);
255
331
  };
256
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
+ */
257
353
  IndicesApi.prototype.close = function indicesCloseApi(params, options, callback) {
258
354
  [params, options, callback] = normalizeArguments(params, options, callback);
259
355
 
@@ -281,6 +377,24 @@ IndicesApi.prototype.close = function indicesCloseApi(params, options, callback)
281
377
  return this.transport.request(request, options, callback);
282
378
  };
283
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
+ */
284
398
  IndicesApi.prototype.create = function indicesCreateApi(params, options, callback) {
285
399
  [params, options, callback] = normalizeArguments(params, options, callback);
286
400
 
@@ -308,6 +422,25 @@ IndicesApi.prototype.create = function indicesCreateApi(params, options, callbac
308
422
  return this.transport.request(request, options, callback);
309
423
  };
310
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
+ */
311
444
  IndicesApi.prototype.delete = function indicesDeleteApi(params, options, callback) {
312
445
  [params, options, callback] = normalizeArguments(params, options, callback);
313
446
 
@@ -335,6 +468,23 @@ IndicesApi.prototype.delete = function indicesDeleteApi(params, options, callbac
335
468
  return this.transport.request(request, options, callback);
336
469
  };
337
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
+ */
338
488
  IndicesApi.prototype.deleteAlias = function indicesDeleteAliasApi(params, options, callback) {
339
489
  [params, options, callback] = normalizeArguments(params, options, callback);
340
490
 
@@ -377,6 +527,22 @@ IndicesApi.prototype.deleteAlias = function indicesDeleteAliasApi(params, option
377
527
  return this.transport.request(request, options, callback);
378
528
  };
379
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
+ */
380
546
  IndicesApi.prototype.deleteIndexTemplate = function indicesDeleteIndexTemplateApi(
381
547
  params,
382
548
  options,
@@ -408,6 +574,21 @@ IndicesApi.prototype.deleteIndexTemplate = function indicesDeleteIndexTemplateAp
408
574
  return this.transport.request(request, options, callback);
409
575
  };
410
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
+ */
411
592
  IndicesApi.prototype.deleteTemplate = function indicesDeleteTemplateApi(params, options, callback) {
412
593
  [params, options, callback] = normalizeArguments(params, options, callback);
413
594
 
@@ -435,6 +616,7 @@ IndicesApi.prototype.deleteTemplate = function indicesDeleteTemplateApi(params,
435
616
  return this.transport.request(request, options, callback);
436
617
  };
437
618
 
619
+ // TODO: Remove. Experimental feature added in ES 7.15
438
620
  IndicesApi.prototype.diskUsage = function indicesDiskUsageApi(params, options, callback) {
439
621
  [params, options, callback] = normalizeArguments(params, options, callback);
440
622
 
@@ -462,6 +644,26 @@ IndicesApi.prototype.diskUsage = function indicesDiskUsageApi(params, options, c
462
644
  return this.transport.request(request, options, callback);
463
645
  };
464
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
+ */
465
667
  IndicesApi.prototype.exists = function indicesExistsApi(params, options, callback) {
466
668
  [params, options, callback] = normalizeArguments(params, options, callback);
467
669
 
@@ -489,6 +691,25 @@ IndicesApi.prototype.exists = function indicesExistsApi(params, options, callbac
489
691
  return this.transport.request(request, options, callback);
490
692
  };
491
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
+ */
492
713
  IndicesApi.prototype.existsAlias = function indicesExistsAliasApi(params, options, callback) {
493
714
  [params, options, callback] = normalizeArguments(params, options, callback);
494
715
 
@@ -521,6 +742,23 @@ IndicesApi.prototype.existsAlias = function indicesExistsAliasApi(params, option
521
742
  return this.transport.request(request, options, callback);
522
743
  };
523
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
+ */
524
762
  IndicesApi.prototype.existsIndexTemplate = function indicesExistsIndexTemplateApi(
525
763
  params,
526
764
  options,
@@ -552,6 +790,22 @@ IndicesApi.prototype.existsIndexTemplate = function indicesExistsIndexTemplateAp
552
790
  return this.transport.request(request, options, callback);
553
791
  };
554
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
+ */
555
809
  IndicesApi.prototype.existsTemplate = function indicesExistsTemplateApi(params, options, callback) {
556
810
  [params, options, callback] = normalizeArguments(params, options, callback);
557
811
 
@@ -579,6 +833,7 @@ IndicesApi.prototype.existsTemplate = function indicesExistsTemplateApi(params,
579
833
  return this.transport.request(request, options, callback);
580
834
  };
581
835
 
836
+ // TODO: Remove. Experimental feature added in ES 7.15
582
837
  IndicesApi.prototype.fieldUsageStats = function indicesFieldUsageStatsApi(
583
838
  params,
584
839
  options,
@@ -610,6 +865,24 @@ IndicesApi.prototype.fieldUsageStats = function indicesFieldUsageStatsApi(
610
865
  return this.transport.request(request, options, callback);
611
866
  };
612
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
+ */
613
886
  IndicesApi.prototype.flush = function indicesFlushApi(params, options, callback) {
614
887
  [params, options, callback] = normalizeArguments(params, options, callback);
615
888
 
@@ -636,6 +909,25 @@ IndicesApi.prototype.flush = function indicesFlushApi(params, options, callback)
636
909
  return this.transport.request(request, options, callback);
637
910
  };
638
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
+ */
639
931
  IndicesApi.prototype.forcemerge = function indicesForcemergeApi(params, options, callback) {
640
932
  [params, options, callback] = normalizeArguments(params, options, callback);
641
933
 
@@ -662,6 +954,27 @@ IndicesApi.prototype.forcemerge = function indicesForcemergeApi(params, options,
662
954
  return this.transport.request(request, options, callback);
663
955
  };
664
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
+ */
665
978
  IndicesApi.prototype.get = function indicesGetApi(params, options, callback) {
666
979
  [params, options, callback] = normalizeArguments(params, options, callback);
667
980
 
@@ -689,6 +1002,25 @@ IndicesApi.prototype.get = function indicesGetApi(params, options, callback) {
689
1002
  return this.transport.request(request, options, callback);
690
1003
  };
691
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
+ */
692
1024
  IndicesApi.prototype.getAlias = function indicesGetAliasApi(params, options, callback) {
693
1025
  [params, options, callback] = normalizeArguments(params, options, callback);
694
1026
 
@@ -721,6 +1053,26 @@ IndicesApi.prototype.getAlias = function indicesGetAliasApi(params, options, cal
721
1053
  return this.transport.request(request, options, callback);
722
1054
  };
723
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
+ */
724
1076
  IndicesApi.prototype.getFieldMapping = function indicesGetFieldMappingApi(
725
1077
  params,
726
1078
  options,
@@ -789,6 +1141,23 @@ IndicesApi.prototype.getFieldMapping = function indicesGetFieldMappingApi(
789
1141
  return this.transport.request(request, options, callback);
790
1142
  };
791
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
+ */
792
1161
  IndicesApi.prototype.getIndexTemplate = function indicesGetIndexTemplateApi(
793
1162
  params,
794
1163
  options,
@@ -819,6 +1188,25 @@ IndicesApi.prototype.getIndexTemplate = function indicesGetIndexTemplateApi(
819
1188
  return this.transport.request(request, options, callback);
820
1189
  };
821
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
+ */
822
1210
  IndicesApi.prototype.getMapping = function indicesGetMappingApi(params, options, callback) {
823
1211
  [params, options, callback] = normalizeArguments(params, options, callback);
824
1212
 
@@ -851,6 +1239,28 @@ IndicesApi.prototype.getMapping = function indicesGetMappingApi(params, options,
851
1239
  return this.transport.request(request, options, callback);
852
1240
  };
853
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
+ */
854
1264
  IndicesApi.prototype.getSettings = function indicesGetSettingsApi(params, options, callback) {
855
1265
  [params, options, callback] = normalizeArguments(params, options, callback);
856
1266
 
@@ -883,6 +1293,22 @@ IndicesApi.prototype.getSettings = function indicesGetSettingsApi(params, option
883
1293
  return this.transport.request(request, options, callback);
884
1294
  };
885
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
+ */
886
1312
  IndicesApi.prototype.getTemplate = function indicesGetTemplateApi(params, options, callback) {
887
1313
  [params, options, callback] = normalizeArguments(params, options, callback);
888
1314
 
@@ -909,6 +1335,22 @@ IndicesApi.prototype.getTemplate = function indicesGetTemplateApi(params, option
909
1335
  return this.transport.request(request, options, callback);
910
1336
  };
911
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
+ */
912
1354
  IndicesApi.prototype.getUpgrade = function indicesGetUpgradeApi(params, options, callback) {
913
1355
  [params, options, callback] = normalizeArguments(params, options, callback);
914
1356
 
@@ -930,6 +1372,26 @@ IndicesApi.prototype.getUpgrade = function indicesGetUpgradeApi(params, options,
930
1372
  return this.transport.request(request, options, callback);
931
1373
  };
932
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
+ */
933
1395
  IndicesApi.prototype.open = function indicesOpenApi(params, options, callback) {
934
1396
  [params, options, callback] = normalizeArguments(params, options, callback);
935
1397
 
@@ -957,6 +1419,24 @@ IndicesApi.prototype.open = function indicesOpenApi(params, options, callback) {
957
1419
  return this.transport.request(request, options, callback);
958
1420
  };
959
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
+ */
960
1440
  IndicesApi.prototype.putAlias = function indicesPutAliasApi(params, options, callback) {
961
1441
  [params, options, callback] = normalizeArguments(params, options, callback);
962
1442
 
@@ -999,6 +1479,24 @@ IndicesApi.prototype.putAlias = function indicesPutAliasApi(params, options, cal
999
1479
  return this.transport.request(request, options, callback);
1000
1480
  };
1001
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
+ */
1002
1500
  IndicesApi.prototype.putIndexTemplate = function indicesPutIndexTemplateApi(
1003
1501
  params,
1004
1502
  options,
@@ -1034,6 +1532,27 @@ IndicesApi.prototype.putIndexTemplate = function indicesPutIndexTemplateApi(
1034
1532
  return this.transport.request(request, options, callback);
1035
1533
  };
1036
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
+ */
1037
1556
  IndicesApi.prototype.putMapping = function indicesPutMappingApi(params, options, callback) {
1038
1557
  [params, options, callback] = normalizeArguments(params, options, callback);
1039
1558
 
@@ -1084,6 +1603,28 @@ IndicesApi.prototype.putMapping = function indicesPutMappingApi(params, options,
1084
1603
  return this.transport.request(request, options, callback);
1085
1604
  };
1086
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
+ */
1087
1628
  IndicesApi.prototype.putSettings = function indicesPutSettingsApi(params, options, callback) {
1088
1629
  [params, options, callback] = normalizeArguments(params, options, callback);
1089
1630
 
@@ -1116,6 +1657,23 @@ IndicesApi.prototype.putSettings = function indicesPutSettingsApi(params, option
1116
1657
  return this.transport.request(request, options, callback);
1117
1658
  };
1118
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
+ */
1119
1677
  IndicesApi.prototype.putTemplate = function indicesPutTemplateApi(params, options, callback) {
1120
1678
  [params, options, callback] = normalizeArguments(params, options, callback);
1121
1679
 
@@ -1147,6 +1705,21 @@ IndicesApi.prototype.putTemplate = function indicesPutTemplateApi(params, option
1147
1705
  return this.transport.request(request, options, callback);
1148
1706
  };
1149
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
+ */
1150
1723
  IndicesApi.prototype.recovery = function indicesRecoveryApi(params, options, callback) {
1151
1724
  [params, options, callback] = normalizeArguments(params, options, callback);
1152
1725
 
@@ -1173,6 +1746,22 @@ IndicesApi.prototype.recovery = function indicesRecoveryApi(params, options, cal
1173
1746
  return this.transport.request(request, options, callback);
1174
1747
  };
1175
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
+ */
1176
1765
  IndicesApi.prototype.refresh = function indicesRefreshApi(params, options, callback) {
1177
1766
  [params, options, callback] = normalizeArguments(params, options, callback);
1178
1767
 
@@ -1199,6 +1788,20 @@ IndicesApi.prototype.refresh = function indicesRefreshApi(params, options, callb
1199
1788
  return this.transport.request(request, options, callback);
1200
1789
  };
1201
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
+ */
1202
1805
  IndicesApi.prototype.resolveIndex = function indicesResolveIndexApi(params, options, callback) {
1203
1806
  [params, options, callback] = normalizeArguments(params, options, callback);
1204
1807
 
@@ -1226,6 +1829,26 @@ IndicesApi.prototype.resolveIndex = function indicesResolveIndexApi(params, opti
1226
1829
  return this.transport.request(request, options, callback);
1227
1830
  };
1228
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
+ */
1229
1852
  IndicesApi.prototype.rollover = function indicesRolloverApi(params, options, callback) {
1230
1853
  [params, options, callback] = normalizeArguments(params, options, callback);
1231
1854
 
@@ -1270,6 +1893,23 @@ IndicesApi.prototype.rollover = function indicesRolloverApi(params, options, cal
1270
1893
  return this.transport.request(request, options, callback);
1271
1894
  };
1272
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
+ */
1273
1913
  IndicesApi.prototype.segments = function indicesSegmentsApi(params, options, callback) {
1274
1914
  [params, options, callback] = normalizeArguments(params, options, callback);
1275
1915
 
@@ -1296,6 +1936,23 @@ IndicesApi.prototype.segments = function indicesSegmentsApi(params, options, cal
1296
1936
  return this.transport.request(request, options, callback);
1297
1937
  };
1298
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
+ */
1299
1956
  IndicesApi.prototype.shardStores = function indicesShardStoresApi(params, options, callback) {
1300
1957
  [params, options, callback] = normalizeArguments(params, options, callback);
1301
1958
 
@@ -1322,6 +1979,26 @@ IndicesApi.prototype.shardStores = function indicesShardStoresApi(params, option
1322
1979
  return this.transport.request(request, options, callback);
1323
1980
  };
1324
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
+ */
1325
2002
  IndicesApi.prototype.shrink = function indicesShrinkApi(params, options, callback) {
1326
2003
  [params, options, callback] = normalizeArguments(params, options, callback);
1327
2004
 
@@ -1359,6 +2036,23 @@ IndicesApi.prototype.shrink = function indicesShrinkApi(params, options, callbac
1359
2036
  return this.transport.request(request, options, callback);
1360
2037
  };
1361
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
+ */
1362
2056
  IndicesApi.prototype.simulateIndexTemplate = function indicesSimulateIndexTemplateApi(
1363
2057
  params,
1364
2058
  options,
@@ -1390,6 +2084,23 @@ IndicesApi.prototype.simulateIndexTemplate = function indicesSimulateIndexTempla
1390
2084
  return this.transport.request(request, options, callback);
1391
2085
  };
1392
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
+ */
1393
2104
  IndicesApi.prototype.simulateTemplate = function indicesSimulateTemplateApi(
1394
2105
  params,
1395
2106
  options,
@@ -1420,6 +2131,26 @@ IndicesApi.prototype.simulateTemplate = function indicesSimulateTemplateApi(
1420
2131
  return this.transport.request(request, options, callback);
1421
2132
  };
1422
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
+ */
1423
2154
  IndicesApi.prototype.split = function indicesSplitApi(params, options, callback) {
1424
2155
  [params, options, callback] = normalizeArguments(params, options, callback);
1425
2156
 
@@ -1457,6 +2188,30 @@ IndicesApi.prototype.split = function indicesSplitApi(params, options, callback)
1457
2188
  return this.transport.request(request, options, callback);
1458
2189
  };
1459
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
+ */
1460
2215
  IndicesApi.prototype.stats = function indicesStatsApi(params, options, callback) {
1461
2216
  [params, options, callback] = normalizeArguments(params, options, callback);
1462
2217
 
@@ -1489,6 +2244,22 @@ IndicesApi.prototype.stats = function indicesStatsApi(params, options, callback)
1489
2244
  return this.transport.request(request, options, callback);
1490
2245
  };
1491
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
+ */
1492
2263
  IndicesApi.prototype.updateAliases = function indicesUpdateAliasesApi(params, options, callback) {
1493
2264
  [params, options, callback] = normalizeArguments(params, options, callback);
1494
2265
 
@@ -1516,6 +2287,24 @@ IndicesApi.prototype.updateAliases = function indicesUpdateAliasesApi(params, op
1516
2287
  return this.transport.request(request, options, callback);
1517
2288
  };
1518
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
+ */
1519
2308
  IndicesApi.prototype.upgrade = function indicesUpgradeApi(params, options, callback) {
1520
2309
  [params, options, callback] = normalizeArguments(params, options, callback);
1521
2310
 
@@ -1537,6 +2326,32 @@ IndicesApi.prototype.upgrade = function indicesUpgradeApi(params, options, callb
1537
2326
  return this.transport.request(request, options, callback);
1538
2327
  };
1539
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
+ */
1540
2355
  IndicesApi.prototype.validateQuery = function indicesValidateQueryApi(params, options, callback) {
1541
2356
  [params, options, callback] = normalizeArguments(params, options, callback);
1542
2357