@opensearch-project/opensearch 3.5.1 → 3.6.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/api/OpenSearchApi.d.ts +78 -0
- package/api/OpenSearchApi.js +4 -0
- package/api/_core/bulk.d.ts +1 -1
- package/api/_core/explain.d.ts +1 -1
- package/api/_core/search.d.ts +1 -0
- package/api/_core/search.js +1 -0
- package/api/_core/searchShards.d.ts +5 -0
- package/api/_core/searchShards.js +1 -0
- package/api/_types/_common.aggregations.d.ts +111 -266
- package/api/_types/_common.analysis.d.ts +2 -2
- package/api/_types/_common.d.ts +13 -7
- package/api/_types/_common.mapping.d.ts +1 -1
- package/api/_types/_common.query_dsl.d.ts +10 -6
- package/api/_types/_core.bulk.d.ts +16 -8
- package/api/_types/_core.explain.d.ts +1 -7
- package/api/_types/_core.search.d.ts +23 -7
- package/api/_types/cluster._common.d.ts +2 -0
- package/api/_types/cluster.stats.d.ts +3 -3
- package/api/_types/geospatial._common.d.ts +147 -0
- package/api/_types/index.d.ts +4 -0
- package/api/_types/indices._common.d.ts +6 -3
- package/api/_types/ltr._common.d.ts +54 -0
- package/api/_types/ml._common.d.ts +9 -0
- package/api/_types/neural._common.d.ts +94 -0
- package/api/_types/nodes._common.d.ts +1 -1
- package/api/_types/nodes.stats.d.ts +1 -0
- package/api/_types/search_pipeline._common.d.ts +19 -1
- package/api/_types/security._common.d.ts +6 -6
- package/api/cluster/existsComponentTemplate.js +1 -1
- package/api/cluster/health.d.ts +2 -1
- package/api/flowFramework/create.js +6 -6
- package/api/flowFramework/delete.js +3 -3
- package/api/flowFramework/deprovision.js +3 -3
- package/api/flowFramework/get.js +2 -2
- package/api/flowFramework/getStatus.js +3 -3
- package/api/flowFramework/getSteps.js +2 -2
- package/api/flowFramework/provision.js +2 -2
- package/api/flowFramework/update.js +7 -7
- package/api/geospatial/_api.js +46 -0
- package/api/geospatial/deleteIp2GeoDatasource.d.ts +30 -0
- package/api/geospatial/deleteIp2GeoDatasource.js +49 -0
- package/api/geospatial/geojsonUploadPost.d.ts +30 -0
- package/api/geospatial/geojsonUploadPost.js +49 -0
- package/api/geospatial/geojsonUploadPut.d.ts +30 -0
- package/api/geospatial/geojsonUploadPut.js +49 -0
- package/api/geospatial/getIp2GeoDatasource.d.ts +31 -0
- package/api/geospatial/getIp2GeoDatasource.js +48 -0
- package/api/geospatial/getUploadStats.d.ts +28 -0
- package/api/geospatial/getUploadStats.js +45 -0
- package/api/geospatial/putIp2GeoDatasource.d.ts +32 -0
- package/api/geospatial/putIp2GeoDatasource.js +53 -0
- package/api/geospatial/putIp2GeoDatasourceSettings.d.ts +32 -0
- package/api/geospatial/putIp2GeoDatasourceSettings.js +50 -0
- package/api/index.d.ts +36 -4
- package/api/indices/putSettings.js +1 -1
- package/api/indices/simulateTemplate.js +1 -1
- package/api/ism/addPolicy.js +1 -1
- package/api/ism/changePolicy.js +1 -1
- package/api/ism/existsPolicy.js +1 -1
- package/api/ism/explainPolicy.js +2 -2
- package/api/ism/getPolicies.js +1 -1
- package/api/ism/getPolicy.js +1 -1
- package/api/ism/putPolicies.js +1 -1
- package/api/ism/refreshSearchAnalyzers.js +2 -2
- package/api/ism/removePolicy.js +1 -1
- package/api/ism/retryIndex.js +2 -2
- package/api/ltr/_api.js +24 -0
- package/api/ltr/cacheStats.d.ts +28 -0
- package/api/ltr/cacheStats.js +45 -0
- package/api/ltr/clearCache.d.ts +30 -0
- package/api/ltr/clearCache.js +48 -0
- package/api/ltr/createDefaultStore.d.ts +28 -0
- package/api/ltr/createDefaultStore.js +45 -0
- package/api/ltr/createStore.d.ts +30 -0
- package/api/ltr/createStore.js +49 -0
- package/api/ltr/deleteDefaultStore.d.ts +28 -0
- package/api/ltr/deleteDefaultStore.js +45 -0
- package/api/ltr/deleteStore.d.ts +30 -0
- package/api/ltr/deleteStore.js +49 -0
- package/api/ltr/getStore.d.ts +30 -0
- package/api/ltr/getStore.js +49 -0
- package/api/ltr/listStores.d.ts +28 -0
- package/api/ltr/listStores.js +45 -0
- package/api/ml/getTool.d.ts +1 -1
- package/api/neural/_api.js +26 -0
- package/api/neural/stats.d.ts +33 -0
- package/api/neural/stats.js +52 -0
- package/api/nodes/hotThreads.js +6 -6
- package/api/nodes/info.js +3 -3
- package/api/nodes/reloadSecureSettings.js +1 -1
- package/api/nodes/stats.js +9 -9
- package/api/observability/createObject.js +1 -1
- package/api/observability/deleteObject.js +1 -1
- package/api/observability/deleteObjects.js +2 -2
- package/api/observability/getObject.js +1 -1
- package/api/observability/updateObject.js +2 -2
- package/api/ppl/explain.js +4 -4
- package/api/ppl/getStats.js +3 -3
- package/api/ppl/postStats.js +4 -4
- package/api/ppl/query.js +4 -4
- package/api/query/datasourceDelete.js +2 -2
- package/api/query/datasourceRetrieve.js +2 -2
- package/api/query/datasourcesCreate.js +2 -2
- package/api/query/datasourcesList.js +1 -1
- package/api/query/datasourcesUpdate.js +2 -2
- package/api/rollups/delete.js +2 -2
- package/api/rollups/explain.js +2 -2
- package/api/rollups/get.js +2 -2
- package/api/rollups/put.js +5 -5
- package/api/rollups/start.js +2 -2
- package/api/rollups/stop.js +2 -2
- package/api/sql/close.js +4 -4
- package/api/sql/explain.js +4 -4
- package/api/sql/getStats.js +3 -3
- package/api/sql/postStats.js +4 -4
- package/api/sql/query.js +4 -4
- package/api/sql/settings.js +3 -3
- package/lib/Connection.js +2 -0
- package/lib/aws/shared.js +3 -2
- package/package.json +2 -2
package/api/OpenSearchApi.d.ts
CHANGED
|
@@ -339,6 +339,39 @@ export default class OpenSearchAPI {
|
|
|
339
339
|
|
|
340
340
|
};
|
|
341
341
|
|
|
342
|
+
geospatial: {
|
|
343
|
+
getUploadStats (params?: API.Geospatial_GetUploadStats_Request, options?: TransportRequestOptions): TransportRequestPromise<API.Geospatial_GetUploadStats_Response>;
|
|
344
|
+
getUploadStats (callback: callbackFn<API.Geospatial_GetUploadStats_Response>): TransportRequestCallback;
|
|
345
|
+
getUploadStats (params: API.Geospatial_GetUploadStats_Request, callback: callbackFn<API.Geospatial_GetUploadStats_Response>): TransportRequestCallback;
|
|
346
|
+
getUploadStats (params: API.Geospatial_GetUploadStats_Request, options: TransportRequestOptions, callback: callbackFn<API.Geospatial_GetUploadStats_Response>): TransportRequestCallback;
|
|
347
|
+
|
|
348
|
+
geojsonUploadPost (params: API.Geospatial_GeojsonUploadPost_Request, options?: TransportRequestOptions): TransportRequestPromise<API.Geospatial_GeojsonUploadPost_Response>;
|
|
349
|
+
geojsonUploadPost (params: API.Geospatial_GeojsonUploadPost_Request, callback: callbackFn<API.Geospatial_GeojsonUploadPost_Response>): TransportRequestCallback;
|
|
350
|
+
geojsonUploadPost (params: API.Geospatial_GeojsonUploadPost_Request, options: TransportRequestOptions, callback: callbackFn<API.Geospatial_GeojsonUploadPost_Response>): TransportRequestCallback;
|
|
351
|
+
|
|
352
|
+
geojsonUploadPut (params: API.Geospatial_GeojsonUploadPut_Request, options?: TransportRequestOptions): TransportRequestPromise<API.Geospatial_GeojsonUploadPut_Response>;
|
|
353
|
+
geojsonUploadPut (params: API.Geospatial_GeojsonUploadPut_Request, callback: callbackFn<API.Geospatial_GeojsonUploadPut_Response>): TransportRequestCallback;
|
|
354
|
+
geojsonUploadPut (params: API.Geospatial_GeojsonUploadPut_Request, options: TransportRequestOptions, callback: callbackFn<API.Geospatial_GeojsonUploadPut_Response>): TransportRequestCallback;
|
|
355
|
+
|
|
356
|
+
getIp2GeoDatasource (params?: API.Geospatial_GetIp2GeoDatasource_Request, options?: TransportRequestOptions): TransportRequestPromise<API.Geospatial_GetIp2GeoDatasource_Response>;
|
|
357
|
+
getIp2GeoDatasource (callback: callbackFn<API.Geospatial_GetIp2GeoDatasource_Response>): TransportRequestCallback;
|
|
358
|
+
getIp2GeoDatasource (params: API.Geospatial_GetIp2GeoDatasource_Request, callback: callbackFn<API.Geospatial_GetIp2GeoDatasource_Response>): TransportRequestCallback;
|
|
359
|
+
getIp2GeoDatasource (params: API.Geospatial_GetIp2GeoDatasource_Request, options: TransportRequestOptions, callback: callbackFn<API.Geospatial_GetIp2GeoDatasource_Response>): TransportRequestCallback;
|
|
360
|
+
|
|
361
|
+
deleteIp2GeoDatasource (params: API.Geospatial_DeleteIp2GeoDatasource_Request, options?: TransportRequestOptions): TransportRequestPromise<API.Geospatial_DeleteIp2GeoDatasource_Response>;
|
|
362
|
+
deleteIp2GeoDatasource (params: API.Geospatial_DeleteIp2GeoDatasource_Request, callback: callbackFn<API.Geospatial_DeleteIp2GeoDatasource_Response>): TransportRequestCallback;
|
|
363
|
+
deleteIp2GeoDatasource (params: API.Geospatial_DeleteIp2GeoDatasource_Request, options: TransportRequestOptions, callback: callbackFn<API.Geospatial_DeleteIp2GeoDatasource_Response>): TransportRequestCallback;
|
|
364
|
+
|
|
365
|
+
putIp2GeoDatasource (params: API.Geospatial_PutIp2GeoDatasource_Request, options?: TransportRequestOptions): TransportRequestPromise<API.Geospatial_PutIp2GeoDatasource_Response>;
|
|
366
|
+
putIp2GeoDatasource (params: API.Geospatial_PutIp2GeoDatasource_Request, callback: callbackFn<API.Geospatial_PutIp2GeoDatasource_Response>): TransportRequestCallback;
|
|
367
|
+
putIp2GeoDatasource (params: API.Geospatial_PutIp2GeoDatasource_Request, options: TransportRequestOptions, callback: callbackFn<API.Geospatial_PutIp2GeoDatasource_Response>): TransportRequestCallback;
|
|
368
|
+
|
|
369
|
+
putIp2GeoDatasourceSettings (params: API.Geospatial_PutIp2GeoDatasourceSettings_Request, options?: TransportRequestOptions): TransportRequestPromise<API.Geospatial_PutIp2GeoDatasourceSettings_Response>;
|
|
370
|
+
putIp2GeoDatasourceSettings (params: API.Geospatial_PutIp2GeoDatasourceSettings_Request, callback: callbackFn<API.Geospatial_PutIp2GeoDatasourceSettings_Response>): TransportRequestCallback;
|
|
371
|
+
putIp2GeoDatasourceSettings (params: API.Geospatial_PutIp2GeoDatasourceSettings_Request, options: TransportRequestOptions, callback: callbackFn<API.Geospatial_PutIp2GeoDatasourceSettings_Response>): TransportRequestCallback;
|
|
372
|
+
|
|
373
|
+
};
|
|
374
|
+
|
|
342
375
|
indices: {
|
|
343
376
|
getAlias (params?: API.Indices_GetAlias_Request, options?: TransportRequestOptions): TransportRequestPromise<API.Indices_GetAlias_Response>;
|
|
344
377
|
getAlias (callback: callbackFn<API.Indices_GetAlias_Response>): TransportRequestCallback;
|
|
@@ -693,6 +726,43 @@ export default class OpenSearchAPI {
|
|
|
693
726
|
};
|
|
694
727
|
|
|
695
728
|
ltr: {
|
|
729
|
+
deleteDefaultStore (params?: API.Ltr_DeleteDefaultStore_Request, options?: TransportRequestOptions): TransportRequestPromise<API.Ltr_DeleteDefaultStore_Response>;
|
|
730
|
+
deleteDefaultStore (callback: callbackFn<API.Ltr_DeleteDefaultStore_Response>): TransportRequestCallback;
|
|
731
|
+
deleteDefaultStore (params: API.Ltr_DeleteDefaultStore_Request, callback: callbackFn<API.Ltr_DeleteDefaultStore_Response>): TransportRequestCallback;
|
|
732
|
+
deleteDefaultStore (params: API.Ltr_DeleteDefaultStore_Request, options: TransportRequestOptions, callback: callbackFn<API.Ltr_DeleteDefaultStore_Response>): TransportRequestCallback;
|
|
733
|
+
|
|
734
|
+
listStores (params?: API.Ltr_ListStores_Request, options?: TransportRequestOptions): TransportRequestPromise<API.Ltr_ListStores_Response>;
|
|
735
|
+
listStores (callback: callbackFn<API.Ltr_ListStores_Response>): TransportRequestCallback;
|
|
736
|
+
listStores (params: API.Ltr_ListStores_Request, callback: callbackFn<API.Ltr_ListStores_Response>): TransportRequestCallback;
|
|
737
|
+
listStores (params: API.Ltr_ListStores_Request, options: TransportRequestOptions, callback: callbackFn<API.Ltr_ListStores_Response>): TransportRequestCallback;
|
|
738
|
+
|
|
739
|
+
createDefaultStore (params?: API.Ltr_CreateDefaultStore_Request, options?: TransportRequestOptions): TransportRequestPromise<API.Ltr_CreateDefaultStore_Response>;
|
|
740
|
+
createDefaultStore (callback: callbackFn<API.Ltr_CreateDefaultStore_Response>): TransportRequestCallback;
|
|
741
|
+
createDefaultStore (params: API.Ltr_CreateDefaultStore_Request, callback: callbackFn<API.Ltr_CreateDefaultStore_Response>): TransportRequestCallback;
|
|
742
|
+
createDefaultStore (params: API.Ltr_CreateDefaultStore_Request, options: TransportRequestOptions, callback: callbackFn<API.Ltr_CreateDefaultStore_Response>): TransportRequestCallback;
|
|
743
|
+
|
|
744
|
+
cacheStats (params?: API.Ltr_CacheStats_Request, options?: TransportRequestOptions): TransportRequestPromise<API.Ltr_CacheStats_Response>;
|
|
745
|
+
cacheStats (callback: callbackFn<API.Ltr_CacheStats_Response>): TransportRequestCallback;
|
|
746
|
+
cacheStats (params: API.Ltr_CacheStats_Request, callback: callbackFn<API.Ltr_CacheStats_Response>): TransportRequestCallback;
|
|
747
|
+
cacheStats (params: API.Ltr_CacheStats_Request, options: TransportRequestOptions, callback: callbackFn<API.Ltr_CacheStats_Response>): TransportRequestCallback;
|
|
748
|
+
|
|
749
|
+
clearCache (params?: API.Ltr_ClearCache_Request, options?: TransportRequestOptions): TransportRequestPromise<API.Ltr_ClearCache_Response>;
|
|
750
|
+
clearCache (callback: callbackFn<API.Ltr_ClearCache_Response>): TransportRequestCallback;
|
|
751
|
+
clearCache (params: API.Ltr_ClearCache_Request, callback: callbackFn<API.Ltr_ClearCache_Response>): TransportRequestCallback;
|
|
752
|
+
clearCache (params: API.Ltr_ClearCache_Request, options: TransportRequestOptions, callback: callbackFn<API.Ltr_ClearCache_Response>): TransportRequestCallback;
|
|
753
|
+
|
|
754
|
+
deleteStore (params: API.Ltr_DeleteStore_Request, options?: TransportRequestOptions): TransportRequestPromise<API.Ltr_DeleteStore_Response>;
|
|
755
|
+
deleteStore (params: API.Ltr_DeleteStore_Request, callback: callbackFn<API.Ltr_DeleteStore_Response>): TransportRequestCallback;
|
|
756
|
+
deleteStore (params: API.Ltr_DeleteStore_Request, options: TransportRequestOptions, callback: callbackFn<API.Ltr_DeleteStore_Response>): TransportRequestCallback;
|
|
757
|
+
|
|
758
|
+
getStore (params: API.Ltr_GetStore_Request, options?: TransportRequestOptions): TransportRequestPromise<API.Ltr_GetStore_Response>;
|
|
759
|
+
getStore (params: API.Ltr_GetStore_Request, callback: callbackFn<API.Ltr_GetStore_Response>): TransportRequestCallback;
|
|
760
|
+
getStore (params: API.Ltr_GetStore_Request, options: TransportRequestOptions, callback: callbackFn<API.Ltr_GetStore_Response>): TransportRequestCallback;
|
|
761
|
+
|
|
762
|
+
createStore (params: API.Ltr_CreateStore_Request, options?: TransportRequestOptions): TransportRequestPromise<API.Ltr_CreateStore_Response>;
|
|
763
|
+
createStore (params: API.Ltr_CreateStore_Request, callback: callbackFn<API.Ltr_CreateStore_Response>): TransportRequestCallback;
|
|
764
|
+
createStore (params: API.Ltr_CreateStore_Request, options: TransportRequestOptions, callback: callbackFn<API.Ltr_CreateStore_Response>): TransportRequestCallback;
|
|
765
|
+
|
|
696
766
|
stats (params?: API.Ltr_Stats_Request, options?: TransportRequestOptions): TransportRequestPromise<API.Ltr_Stats_Response>;
|
|
697
767
|
stats (callback: callbackFn<API.Ltr_Stats_Response>): TransportRequestCallback;
|
|
698
768
|
stats (params: API.Ltr_Stats_Request, callback: callbackFn<API.Ltr_Stats_Response>): TransportRequestCallback;
|
|
@@ -961,6 +1031,14 @@ export default class OpenSearchAPI {
|
|
|
961
1031
|
|
|
962
1032
|
};
|
|
963
1033
|
|
|
1034
|
+
neural: {
|
|
1035
|
+
stats (params?: API.Neural_Stats_Request, options?: TransportRequestOptions): TransportRequestPromise<API.Neural_Stats_Response>;
|
|
1036
|
+
stats (callback: callbackFn<API.Neural_Stats_Response>): TransportRequestCallback;
|
|
1037
|
+
stats (params: API.Neural_Stats_Request, callback: callbackFn<API.Neural_Stats_Response>): TransportRequestCallback;
|
|
1038
|
+
stats (params: API.Neural_Stats_Request, options: TransportRequestOptions, callback: callbackFn<API.Neural_Stats_Response>): TransportRequestCallback;
|
|
1039
|
+
|
|
1040
|
+
};
|
|
1041
|
+
|
|
964
1042
|
nodes: {
|
|
965
1043
|
info (params?: API.Nodes_Info_Request, options?: TransportRequestOptions): TransportRequestPromise<API.Nodes_Info_Response>;
|
|
966
1044
|
info (callback: callbackFn<API.Nodes_Info_Response>): TransportRequestCallback;
|
package/api/OpenSearchApi.js
CHANGED
|
@@ -28,6 +28,7 @@ class OpenSearchAPI {
|
|
|
28
28
|
cluster: new(require('./cluster/_api'))(this),
|
|
29
29
|
danglingIndices: new(require('./danglingIndices/_api'))(this),
|
|
30
30
|
flowFramework: new(require('./flowFramework/_api'))(this),
|
|
31
|
+
geospatial: new(require('./geospatial/_api'))(this),
|
|
31
32
|
http: new(require('./http/_api'))(this),
|
|
32
33
|
indices: new(require('./indices/_api'))(this),
|
|
33
34
|
ingest: new(require('./ingest/_api'))(this),
|
|
@@ -37,6 +38,7 @@ class OpenSearchAPI {
|
|
|
37
38
|
list: new(require('./list/_api'))(this),
|
|
38
39
|
ltr: new(require('./ltr/_api'))(this),
|
|
39
40
|
ml: new(require('./ml/_api'))(this),
|
|
41
|
+
neural: new(require('./neural/_api'))(this),
|
|
40
42
|
nodes: new(require('./nodes/_api'))(this),
|
|
41
43
|
notifications: new(require('./notifications/_api'))(this),
|
|
42
44
|
observability: new(require('./observability/_api'))(this),
|
|
@@ -159,6 +161,7 @@ class OpenSearchAPI {
|
|
|
159
161
|
cluster: { get() { return this[kApiModules].cluster } },
|
|
160
162
|
danglingIndices: { get() { return this[kApiModules].danglingIndices } },
|
|
161
163
|
flowFramework: { get() { return this[kApiModules].flowFramework } },
|
|
164
|
+
geospatial: { get() { return this[kApiModules].geospatial } },
|
|
162
165
|
http: { get() { return this[kApiModules].http } },
|
|
163
166
|
indices: { get() { return this[kApiModules].indices } },
|
|
164
167
|
ingest: { get() { return this[kApiModules].ingest } },
|
|
@@ -168,6 +171,7 @@ class OpenSearchAPI {
|
|
|
168
171
|
list: { get() { return this[kApiModules].list } },
|
|
169
172
|
ltr: { get() { return this[kApiModules].ltr } },
|
|
170
173
|
ml: { get() { return this[kApiModules].ml } },
|
|
174
|
+
neural: { get() { return this[kApiModules].neural } },
|
|
171
175
|
nodes: { get() { return this[kApiModules].nodes } },
|
|
172
176
|
notifications: { get() { return this[kApiModules].notifications } },
|
|
173
177
|
observability: { get() { return this[kApiModules].observability } },
|
package/api/_core/bulk.d.ts
CHANGED
|
@@ -29,7 +29,7 @@ export interface Bulk_Request extends Global.Params {
|
|
|
29
29
|
pipeline?: string;
|
|
30
30
|
refresh?: Common.Refresh;
|
|
31
31
|
require_alias?: boolean;
|
|
32
|
-
routing?: Common.
|
|
32
|
+
routing?: Common.Routing;
|
|
33
33
|
timeout?: Common.Duration;
|
|
34
34
|
type?: string;
|
|
35
35
|
wait_for_active_shards?: Common.WaitForActiveShards;
|
package/api/_core/explain.d.ts
CHANGED
package/api/_core/search.d.ts
CHANGED
package/api/_core/search.js
CHANGED
|
@@ -70,6 +70,7 @@ const { normalizeArguments, parsePathParam } = require('../utils');
|
|
|
70
70
|
* @param {boolean} [params.track_scores] - If `true`, calculate and return document scores, even if the scores are not used for sorting.
|
|
71
71
|
* @param {string} [params.track_total_hits] - Number of hits matching the query to count accurately. If `true`, the exact number of hits is returned at the cost of some performance. If `false`, the response does not include the total number of hits matching the query.
|
|
72
72
|
* @param {boolean} [params.typed_keys] - If `true`, aggregation and suggester names are be prefixed by their respective types in the response.
|
|
73
|
+
* @param {boolean} [params.verbose_pipeline] - Enables or disables verbose mode for the search pipeline. When verbose mode is enabled, detailed information about each processor in the search pipeline is included in the search response. This includes the processor name, execution status, input, output, and time taken for processing. This parameter is primarily intended for debugging purposes, allowing users to track how data flows and transforms through the search pipeline.
|
|
73
74
|
* @param {boolean} [params.version] - If `true`, returns document version as part of a hit.
|
|
74
75
|
* @param {string} [params.index] - Comma-separated list of data streams, indexes, and aliases to search. Supports wildcards (`*`). To search all data streams and indexes, omit this parameter or use `*` or `_all`.
|
|
75
76
|
* @param {object} [params.body] - The search definition using the Query DSL
|
|
@@ -21,6 +21,7 @@ import * as Global from '../_types/_global'
|
|
|
21
21
|
|
|
22
22
|
export interface SearchShards_Request extends Global.Params {
|
|
23
23
|
allow_no_indices?: boolean;
|
|
24
|
+
body?: SearchShards_RequestBody;
|
|
24
25
|
expand_wildcards?: Common.ExpandWildcards;
|
|
25
26
|
ignore_unavailable?: boolean;
|
|
26
27
|
index?: Common.Indices;
|
|
@@ -29,6 +30,10 @@ export interface SearchShards_Request extends Global.Params {
|
|
|
29
30
|
routing?: Common.RoutingInQueryString;
|
|
30
31
|
}
|
|
31
32
|
|
|
33
|
+
export type SearchShards_RequestBody = {
|
|
34
|
+
slice?: Common.SlicedScroll;
|
|
35
|
+
}
|
|
36
|
+
|
|
32
37
|
export interface SearchShards_Response extends ApiResponse {
|
|
33
38
|
body: SearchShards_ResponseBody;
|
|
34
39
|
}
|
|
@@ -32,6 +32,7 @@ const { normalizeArguments, parsePathParam } = require('../utils');
|
|
|
32
32
|
* @param {string} [params.preference=random] - Specifies the node or shard the operation should be performed on. Random by default.
|
|
33
33
|
* @param {string} [params.routing] - Custom value used to route operations to a specific shard.
|
|
34
34
|
* @param {string} [params.index] - Returns the indexes and shards that a search request would be executed against.
|
|
35
|
+
* @param {object} [params.body]
|
|
35
36
|
*
|
|
36
37
|
* @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
|
|
37
38
|
* @param {function} [callback] - Callback that handles errors and response
|