@elastic/elasticsearch 7.13.0 → 7.14.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/README.md CHANGED
@@ -54,7 +54,9 @@ of `^7.10.0`).
54
54
 
55
55
  ### Compatibility
56
56
 
57
- The library is compatible with all Elasticsearch versions since 5.x, and you should use the same major version of the Elasticsearch instance that you are using.
57
+ Elastic language clients are guaranteed to be able to communicate with Elasticsearch or Elastic solutions running on the same major version and greater or equal minor version.
58
+
59
+ Language clients are forward compatible; meaning that clients support communicating with greater minor versions of Elasticsearch. Elastic language clients are not guaranteed to be backwards compatible.
58
60
 
59
61
  | Elasticsearch Version | Client Version |
60
62
  | --------------------- |----------------|
package/api/api/ilm.js CHANGED
@@ -23,8 +23,8 @@
23
23
  /* eslint no-unused-vars: 0 */
24
24
 
25
25
  const { handleError, snakeCaseKeys, normalizeArguments, kConfigurationError } = require('../utils')
26
- const acceptedQuerystring = ['pretty', 'human', 'error_trace', 'source', 'filter_path', 'only_managed', 'only_errors']
27
- const snakeCase = { errorTrace: 'error_trace', filterPath: 'filter_path', onlyManaged: 'only_managed', onlyErrors: 'only_errors' }
26
+ const acceptedQuerystring = ['pretty', 'human', 'error_trace', 'source', 'filter_path', 'only_managed', 'only_errors', 'dry_run']
27
+ const snakeCase = { errorTrace: 'error_trace', filterPath: 'filter_path', onlyManaged: 'only_managed', onlyErrors: 'only_errors', dryRun: 'dry_run' }
28
28
 
29
29
  function IlmApi (transport, ConfigurationError) {
30
30
  this.transport = transport
@@ -132,6 +132,27 @@ IlmApi.prototype.getStatus = function ilmGetStatusApi (params, options, callback
132
132
  return this.transport.request(request, options, callback)
133
133
  }
134
134
 
135
+ IlmApi.prototype.migrateToDataTiers = function ilmMigrateToDataTiersApi (params, options, callback) {
136
+ ;[params, options, callback] = normalizeArguments(params, options, callback)
137
+
138
+ let { method, body, ...querystring } = params
139
+ querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
140
+
141
+ let path = ''
142
+ if (method == null) method = 'POST'
143
+ path = '/' + '_ilm' + '/' + 'migrate_to_data_tiers'
144
+
145
+ // build request object
146
+ const request = {
147
+ method,
148
+ path,
149
+ body: body || '',
150
+ querystring
151
+ }
152
+
153
+ return this.transport.request(request, options, callback)
154
+ }
155
+
135
156
  IlmApi.prototype.moveToStep = function ilmMoveToStepApi (params, options, callback) {
136
157
  ;[params, options, callback] = normalizeArguments(params, options, callback)
137
158
 
@@ -287,6 +308,7 @@ Object.defineProperties(IlmApi.prototype, {
287
308
  explain_lifecycle: { get () { return this.explainLifecycle } },
288
309
  get_lifecycle: { get () { return this.getLifecycle } },
289
310
  get_status: { get () { return this.getStatus } },
311
+ migrate_to_data_tiers: { get () { return this.migrateToDataTiers } },
290
312
  move_to_step: { get () { return this.moveToStep } },
291
313
  put_lifecycle: { get () { return this.putLifecycle } },
292
314
  remove_policy: { get () { return this.removePolicy } }
package/api/api/ml.js CHANGED
@@ -1493,6 +1493,33 @@ MlApi.prototype.putTrainedModelAlias = function mlPutTrainedModelAliasApi (param
1493
1493
  return this.transport.request(request, options, callback)
1494
1494
  }
1495
1495
 
1496
+ MlApi.prototype.resetJob = function mlResetJobApi (params, options, callback) {
1497
+ ;[params, options, callback] = normalizeArguments(params, options, callback)
1498
+
1499
+ // check required parameters
1500
+ if (params.job_id == null && params.jobId == null) {
1501
+ const err = new this[kConfigurationError]('Missing required parameter: job_id or jobId')
1502
+ return handleError(err, callback)
1503
+ }
1504
+
1505
+ let { method, body, jobId, job_id, ...querystring } = params
1506
+ querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
1507
+
1508
+ let path = ''
1509
+ if (method == null) method = 'POST'
1510
+ path = '/' + '_ml' + '/' + 'anomaly_detectors' + '/' + encodeURIComponent(job_id || jobId) + '/' + '_reset'
1511
+
1512
+ // build request object
1513
+ const request = {
1514
+ method,
1515
+ path,
1516
+ body: body || '',
1517
+ querystring
1518
+ }
1519
+
1520
+ return this.transport.request(request, options, callback)
1521
+ }
1522
+
1496
1523
  MlApi.prototype.revertModelSnapshot = function mlRevertModelSnapshotApi (params, options, callback) {
1497
1524
  ;[params, options, callback] = normalizeArguments(params, options, callback)
1498
1525
 
@@ -1964,6 +1991,7 @@ Object.defineProperties(MlApi.prototype, {
1964
1991
  put_job: { get () { return this.putJob } },
1965
1992
  put_trained_model: { get () { return this.putTrainedModel } },
1966
1993
  put_trained_model_alias: { get () { return this.putTrainedModelAlias } },
1994
+ reset_job: { get () { return this.resetJob } },
1967
1995
  revert_model_snapshot: { get () { return this.revertModelSnapshot } },
1968
1996
  set_upgrade_mode: { get () { return this.setUpgradeMode } },
1969
1997
  start_data_frame_analytics: { get () { return this.startDataFrameAnalytics } },
@@ -1032,6 +1032,168 @@ SecurityApi.prototype.putUser = function securityPutUserApi (params, options, ca
1032
1032
  return this.transport.request(request, options, callback)
1033
1033
  }
1034
1034
 
1035
+ SecurityApi.prototype.samlAuthenticate = function securitySamlAuthenticateApi (params, options, callback) {
1036
+ ;[params, options, callback] = normalizeArguments(params, options, callback)
1037
+
1038
+ // check required parameters
1039
+ if (params.body == null) {
1040
+ const err = new this[kConfigurationError]('Missing required parameter: body')
1041
+ return handleError(err, callback)
1042
+ }
1043
+
1044
+ let { method, body, ...querystring } = params
1045
+ querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
1046
+
1047
+ let path = ''
1048
+ if (method == null) method = 'POST'
1049
+ path = '/' + '_security' + '/' + 'saml' + '/' + 'authenticate'
1050
+
1051
+ // build request object
1052
+ const request = {
1053
+ method,
1054
+ path,
1055
+ body: body || '',
1056
+ querystring
1057
+ }
1058
+
1059
+ return this.transport.request(request, options, callback)
1060
+ }
1061
+
1062
+ SecurityApi.prototype.samlCompleteLogout = function securitySamlCompleteLogoutApi (params, options, callback) {
1063
+ ;[params, options, callback] = normalizeArguments(params, options, callback)
1064
+
1065
+ // check required parameters
1066
+ if (params.body == null) {
1067
+ const err = new this[kConfigurationError]('Missing required parameter: body')
1068
+ return handleError(err, callback)
1069
+ }
1070
+
1071
+ let { method, body, ...querystring } = params
1072
+ querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
1073
+
1074
+ let path = ''
1075
+ if (method == null) method = 'POST'
1076
+ path = '/' + '_security' + '/' + 'saml' + '/' + 'complete_logout'
1077
+
1078
+ // build request object
1079
+ const request = {
1080
+ method,
1081
+ path,
1082
+ body: body || '',
1083
+ querystring
1084
+ }
1085
+
1086
+ return this.transport.request(request, options, callback)
1087
+ }
1088
+
1089
+ SecurityApi.prototype.samlInvalidate = function securitySamlInvalidateApi (params, options, callback) {
1090
+ ;[params, options, callback] = normalizeArguments(params, options, callback)
1091
+
1092
+ // check required parameters
1093
+ if (params.body == null) {
1094
+ const err = new this[kConfigurationError]('Missing required parameter: body')
1095
+ return handleError(err, callback)
1096
+ }
1097
+
1098
+ let { method, body, ...querystring } = params
1099
+ querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
1100
+
1101
+ let path = ''
1102
+ if (method == null) method = 'POST'
1103
+ path = '/' + '_security' + '/' + 'saml' + '/' + 'invalidate'
1104
+
1105
+ // build request object
1106
+ const request = {
1107
+ method,
1108
+ path,
1109
+ body: body || '',
1110
+ querystring
1111
+ }
1112
+
1113
+ return this.transport.request(request, options, callback)
1114
+ }
1115
+
1116
+ SecurityApi.prototype.samlLogout = function securitySamlLogoutApi (params, options, callback) {
1117
+ ;[params, options, callback] = normalizeArguments(params, options, callback)
1118
+
1119
+ // check required parameters
1120
+ if (params.body == null) {
1121
+ const err = new this[kConfigurationError]('Missing required parameter: body')
1122
+ return handleError(err, callback)
1123
+ }
1124
+
1125
+ let { method, body, ...querystring } = params
1126
+ querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
1127
+
1128
+ let path = ''
1129
+ if (method == null) method = 'POST'
1130
+ path = '/' + '_security' + '/' + 'saml' + '/' + 'logout'
1131
+
1132
+ // build request object
1133
+ const request = {
1134
+ method,
1135
+ path,
1136
+ body: body || '',
1137
+ querystring
1138
+ }
1139
+
1140
+ return this.transport.request(request, options, callback)
1141
+ }
1142
+
1143
+ SecurityApi.prototype.samlPrepareAuthentication = function securitySamlPrepareAuthenticationApi (params, options, callback) {
1144
+ ;[params, options, callback] = normalizeArguments(params, options, callback)
1145
+
1146
+ // check required parameters
1147
+ if (params.body == null) {
1148
+ const err = new this[kConfigurationError]('Missing required parameter: body')
1149
+ return handleError(err, callback)
1150
+ }
1151
+
1152
+ let { method, body, ...querystring } = params
1153
+ querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
1154
+
1155
+ let path = ''
1156
+ if (method == null) method = 'POST'
1157
+ path = '/' + '_security' + '/' + 'saml' + '/' + 'prepare'
1158
+
1159
+ // build request object
1160
+ const request = {
1161
+ method,
1162
+ path,
1163
+ body: body || '',
1164
+ querystring
1165
+ }
1166
+
1167
+ return this.transport.request(request, options, callback)
1168
+ }
1169
+
1170
+ SecurityApi.prototype.samlServiceProviderMetadata = function securitySamlServiceProviderMetadataApi (params, options, callback) {
1171
+ ;[params, options, callback] = normalizeArguments(params, options, callback)
1172
+
1173
+ // check required parameters
1174
+ if (params.realm_name == null && params.realmName == null) {
1175
+ const err = new this[kConfigurationError]('Missing required parameter: realm_name or realmName')
1176
+ return handleError(err, callback)
1177
+ }
1178
+
1179
+ let { method, body, realmName, realm_name, ...querystring } = params
1180
+ querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
1181
+
1182
+ let path = ''
1183
+ if (method == null) method = 'GET'
1184
+ path = '/' + '_security' + '/' + 'saml' + '/' + 'metadata' + '/' + encodeURIComponent(realm_name || realmName)
1185
+
1186
+ // build request object
1187
+ const request = {
1188
+ method,
1189
+ path,
1190
+ body: null,
1191
+ querystring
1192
+ }
1193
+
1194
+ return this.transport.request(request, options, callback)
1195
+ }
1196
+
1035
1197
  Object.defineProperties(SecurityApi.prototype, {
1036
1198
  change_password: { get () { return this.changePassword } },
1037
1199
  clear_api_key_cache: { get () { return this.clearApiKeyCache } },
@@ -1065,7 +1227,13 @@ Object.defineProperties(SecurityApi.prototype, {
1065
1227
  put_privileges: { get () { return this.putPrivileges } },
1066
1228
  put_role: { get () { return this.putRole } },
1067
1229
  put_role_mapping: { get () { return this.putRoleMapping } },
1068
- put_user: { get () { return this.putUser } }
1230
+ put_user: { get () { return this.putUser } },
1231
+ saml_authenticate: { get () { return this.samlAuthenticate } },
1232
+ saml_complete_logout: { get () { return this.samlCompleteLogout } },
1233
+ saml_invalidate: { get () { return this.samlInvalidate } },
1234
+ saml_logout: { get () { return this.samlLogout } },
1235
+ saml_prepare_authentication: { get () { return this.samlPrepareAuthentication } },
1236
+ saml_service_provider_metadata: { get () { return this.samlServiceProviderMetadata } }
1069
1237
  })
1070
1238
 
1071
1239
  module.exports = SecurityApi
@@ -23,8 +23,8 @@
23
23
  /* eslint no-unused-vars: 0 */
24
24
 
25
25
  const { handleError, snakeCaseKeys, normalizeArguments, kConfigurationError } = require('../utils')
26
- const acceptedQuerystring = ['master_timeout', 'timeout', 'pretty', 'human', 'error_trace', 'source', 'filter_path', 'wait_for_completion', 'verify', 'ignore_unavailable', 'index_details', 'verbose', 'local']
27
- const snakeCase = { masterTimeout: 'master_timeout', errorTrace: 'error_trace', filterPath: 'filter_path', waitForCompletion: 'wait_for_completion', ignoreUnavailable: 'ignore_unavailable', indexDetails: 'index_details' }
26
+ const acceptedQuerystring = ['master_timeout', 'timeout', 'pretty', 'human', 'error_trace', 'source', 'filter_path', 'wait_for_completion', 'verify', 'ignore_unavailable', 'index_details', 'include_repository', 'verbose', 'local', 'blob_count', 'concurrency', 'read_node_count', 'early_read_node_count', 'seed', 'rare_action_probability', 'max_blob_size', 'max_total_data_size', 'detailed', 'rarely_abort_writes']
27
+ const snakeCase = { masterTimeout: 'master_timeout', errorTrace: 'error_trace', filterPath: 'filter_path', waitForCompletion: 'wait_for_completion', ignoreUnavailable: 'ignore_unavailable', indexDetails: 'index_details', includeRepository: 'include_repository', blobCount: 'blob_count', readNodeCount: 'read_node_count', earlyReadNodeCount: 'early_read_node_count', rareActionProbability: 'rare_action_probability', maxBlobSize: 'max_blob_size', maxTotalDataSize: 'max_total_data_size', rarelyAbortWrites: 'rarely_abort_writes' }
28
28
 
29
29
  function SnapshotApi (transport, ConfigurationError) {
30
30
  this.transport = transport
@@ -301,6 +301,33 @@ SnapshotApi.prototype.getRepository = function snapshotGetRepositoryApi (params,
301
301
  return this.transport.request(request, options, callback)
302
302
  }
303
303
 
304
+ SnapshotApi.prototype.repositoryAnalyze = function snapshotRepositoryAnalyzeApi (params, options, callback) {
305
+ ;[params, options, callback] = normalizeArguments(params, options, callback)
306
+
307
+ // check required parameters
308
+ if (params.repository == null) {
309
+ const err = new this[kConfigurationError]('Missing required parameter: repository')
310
+ return handleError(err, callback)
311
+ }
312
+
313
+ let { method, body, repository, ...querystring } = params
314
+ querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
315
+
316
+ let path = ''
317
+ if (method == null) method = 'POST'
318
+ path = '/' + '_snapshot' + '/' + encodeURIComponent(repository) + '/' + '_analyze'
319
+
320
+ // build request object
321
+ const request = {
322
+ method,
323
+ path,
324
+ body: body || '',
325
+ querystring
326
+ }
327
+
328
+ return this.transport.request(request, options, callback)
329
+ }
330
+
304
331
  SnapshotApi.prototype.restore = function snapshotRestoreApi (params, options, callback) {
305
332
  ;[params, options, callback] = normalizeArguments(params, options, callback)
306
333
 
@@ -405,6 +432,7 @@ Object.defineProperties(SnapshotApi.prototype, {
405
432
  create_repository: { get () { return this.createRepository } },
406
433
  delete_repository: { get () { return this.deleteRepository } },
407
434
  get_repository: { get () { return this.getRepository } },
435
+ repository_analyze: { get () { return this.repositoryAnalyze } },
408
436
  verify_repository: { get () { return this.verifyRepository } }
409
437
  })
410
438
 
package/api/api/sql.js CHANGED
@@ -23,8 +23,8 @@
23
23
  /* eslint no-unused-vars: 0 */
24
24
 
25
25
  const { handleError, snakeCaseKeys, normalizeArguments, kConfigurationError } = require('../utils')
26
- const acceptedQuerystring = ['pretty', 'human', 'error_trace', 'source', 'filter_path', 'format']
27
- const snakeCase = { errorTrace: 'error_trace', filterPath: 'filter_path' }
26
+ const acceptedQuerystring = ['pretty', 'human', 'error_trace', 'source', 'filter_path', 'delimiter', 'format', 'keep_alive', 'wait_for_completion_timeout']
27
+ const snakeCase = { errorTrace: 'error_trace', filterPath: 'filter_path', keepAlive: 'keep_alive', waitForCompletionTimeout: 'wait_for_completion_timeout' }
28
28
 
29
29
  function SqlApi (transport, ConfigurationError) {
30
30
  this.transport = transport
@@ -58,6 +58,87 @@ SqlApi.prototype.clearCursor = function sqlClearCursorApi (params, options, call
58
58
  return this.transport.request(request, options, callback)
59
59
  }
60
60
 
61
+ SqlApi.prototype.deleteAsync = function sqlDeleteAsyncApi (params, options, callback) {
62
+ ;[params, options, callback] = normalizeArguments(params, options, callback)
63
+
64
+ // check required parameters
65
+ if (params.id == null) {
66
+ const err = new this[kConfigurationError]('Missing required parameter: id')
67
+ return handleError(err, callback)
68
+ }
69
+
70
+ let { method, body, id, ...querystring } = params
71
+ querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
72
+
73
+ let path = ''
74
+ if (method == null) method = 'DELETE'
75
+ path = '/' + '_sql' + '/' + 'async' + '/' + 'delete' + '/' + encodeURIComponent(id)
76
+
77
+ // build request object
78
+ const request = {
79
+ method,
80
+ path,
81
+ body: body || '',
82
+ querystring
83
+ }
84
+
85
+ return this.transport.request(request, options, callback)
86
+ }
87
+
88
+ SqlApi.prototype.getAsync = function sqlGetAsyncApi (params, options, callback) {
89
+ ;[params, options, callback] = normalizeArguments(params, options, callback)
90
+
91
+ // check required parameters
92
+ if (params.id == null) {
93
+ const err = new this[kConfigurationError]('Missing required parameter: id')
94
+ return handleError(err, callback)
95
+ }
96
+
97
+ let { method, body, id, ...querystring } = params
98
+ querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
99
+
100
+ let path = ''
101
+ if (method == null) method = 'GET'
102
+ path = '/' + '_sql' + '/' + 'async' + '/' + encodeURIComponent(id)
103
+
104
+ // build request object
105
+ const request = {
106
+ method,
107
+ path,
108
+ body: null,
109
+ querystring
110
+ }
111
+
112
+ return this.transport.request(request, options, callback)
113
+ }
114
+
115
+ SqlApi.prototype.getAsyncStatus = function sqlGetAsyncStatusApi (params, options, callback) {
116
+ ;[params, options, callback] = normalizeArguments(params, options, callback)
117
+
118
+ // check required parameters
119
+ if (params.id == null) {
120
+ const err = new this[kConfigurationError]('Missing required parameter: id')
121
+ return handleError(err, callback)
122
+ }
123
+
124
+ let { method, body, id, ...querystring } = params
125
+ querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
126
+
127
+ let path = ''
128
+ if (method == null) method = 'GET'
129
+ path = '/' + '_sql' + '/' + 'async' + '/' + 'status' + '/' + encodeURIComponent(id)
130
+
131
+ // build request object
132
+ const request = {
133
+ method,
134
+ path,
135
+ body: null,
136
+ querystring
137
+ }
138
+
139
+ return this.transport.request(request, options, callback)
140
+ }
141
+
61
142
  SqlApi.prototype.query = function sqlQueryApi (params, options, callback) {
62
143
  ;[params, options, callback] = normalizeArguments(params, options, callback)
63
144
 
@@ -113,7 +194,10 @@ SqlApi.prototype.translate = function sqlTranslateApi (params, options, callback
113
194
  }
114
195
 
115
196
  Object.defineProperties(SqlApi.prototype, {
116
- clear_cursor: { get () { return this.clearCursor } }
197
+ clear_cursor: { get () { return this.clearCursor } },
198
+ delete_async: { get () { return this.deleteAsync } },
199
+ get_async: { get () { return this.getAsync } },
200
+ get_async_status: { get () { return this.getAsyncStatus } }
117
201
  })
118
202
 
119
203
  module.exports = SqlApi
@@ -0,0 +1,56 @@
1
+ /*
2
+ * Licensed to Elasticsearch B.V. under one or more contributor
3
+ * license agreements. See the NOTICE file distributed with
4
+ * this work for additional information regarding copyright
5
+ * ownership. Elasticsearch B.V. licenses this file to you under
6
+ * the Apache License, Version 2.0 (the "License"); you may
7
+ * not use this file except in compliance with the License.
8
+ * You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing,
13
+ * software distributed under the License is distributed on an
14
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15
+ * KIND, either express or implied. See the License for the
16
+ * specific language governing permissions and limitations
17
+ * under the License.
18
+ */
19
+
20
+ 'use strict'
21
+
22
+ /* eslint camelcase: 0 */
23
+ /* eslint no-unused-vars: 0 */
24
+
25
+ const { handleError, snakeCaseKeys, normalizeArguments, kConfigurationError } = require('../utils')
26
+ const acceptedQuerystring = ['pretty', 'human', 'error_trace', 'source', 'filter_path']
27
+ const snakeCase = { errorTrace: 'error_trace', filterPath: 'filter_path' }
28
+
29
+ function termsEnumApi (params, options, callback) {
30
+ ;[params, options, callback] = normalizeArguments(params, options, callback)
31
+
32
+ // check required parameters
33
+ if (params.index == null) {
34
+ const err = new this[kConfigurationError]('Missing required parameter: index')
35
+ return handleError(err, callback)
36
+ }
37
+
38
+ let { method, body, index, ...querystring } = params
39
+ querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
40
+
41
+ let path = ''
42
+ if (method == null) method = body == null ? 'GET' : 'POST'
43
+ path = '/' + encodeURIComponent(index) + '/' + '_terms_enum'
44
+
45
+ // build request object
46
+ const request = {
47
+ method,
48
+ path,
49
+ body: body || '',
50
+ querystring
51
+ }
52
+
53
+ return this.transport.request(request, options, callback)
54
+ }
55
+
56
+ module.exports = termsEnumApi
package/api/index.js CHANGED
@@ -84,6 +84,7 @@ const SnapshotApi = require('./api/snapshot')
84
84
  const SqlApi = require('./api/sql')
85
85
  const SslApi = require('./api/ssl')
86
86
  const TasksApi = require('./api/tasks')
87
+ const termsEnumApi = require('./api/terms_enum')
87
88
  const termvectorsApi = require('./api/termvectors')
88
89
  const TextStructureApi = require('./api/text_structure')
89
90
  const TransformApi = require('./api/transform')
@@ -201,6 +202,7 @@ ESAPI.prototype.scroll = scrollApi
201
202
  ESAPI.prototype.search = searchApi
202
203
  ESAPI.prototype.searchShards = searchShardsApi
203
204
  ESAPI.prototype.searchTemplate = searchTemplateApi
205
+ ESAPI.prototype.termsEnum = termsEnumApi
204
206
  ESAPI.prototype.termvectors = termvectorsApi
205
207
  ESAPI.prototype.update = updateApi
206
208
  ESAPI.prototype.updateByQuery = updateByQueryApi
@@ -462,6 +464,7 @@ Object.defineProperties(ESAPI.prototype, {
462
464
  return this[kTasks]
463
465
  }
464
466
  },
467
+ terms_enum: { get () { return this.termsEnum } },
465
468
  textStructure: {
466
469
  get () {
467
470
  if (this[kTextStructure] === null) {