You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/api/api/async_search.ts
+34-9Lines changed: 34 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -28,6 +28,7 @@
28
28
29
29
import{
30
30
Transport,
31
+
TransportRequestMetadata,
31
32
TransportRequestOptions,
32
33
TransportRequestOptionsWithMeta,
33
34
TransportRequestOptionsWithOutMeta,
@@ -44,7 +45,7 @@ export default class AsyncSearch {
44
45
}
45
46
46
47
/**
47
-
* Deletes an async search by ID. If the search is still running, the search request will be cancelled. Otherwise, the saved search results are deleted.
48
+
* Deletes an async search by identifier. If the search is still running, the search request will be cancelled. Otherwise, the saved search results are deleted. If the Elasticsearch security features are enabled, the deletion of a specific async search is restricted to: the authenticated user that submitted the original search request; users that have the `cancel_task` cluster privilege.
48
49
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/master/async-search.html | Elasticsearch API documentation}
returnawaitthis.transport.request({ path, method, querystring, body },options)
70
+
constmeta: TransportRequestMetadata={
71
+
name: 'async_search.delete',
72
+
pathParts: {
73
+
id: params.id
74
+
}
75
+
}
76
+
returnawaitthis.transport.request({ path, method, querystring, body, meta },options)
70
77
}
71
78
72
79
/**
73
-
* Retrieves the results of a previously submitted async search request given its ID.
80
+
* Retrieves the results of a previously submitted async search request given its identifier. If the Elasticsearch security features are enabled, access to the results of a specific async search is restricted to the user or API key that submitted it.
74
81
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/master/async-search.html | Elasticsearch API documentation}
returnawaitthis.transport.request({ path, method, querystring, body },options)
102
+
constmeta: TransportRequestMetadata={
103
+
name: 'async_search.get',
104
+
pathParts: {
105
+
id: params.id
106
+
}
107
+
}
108
+
returnawaitthis.transport.request({ path, method, querystring, body, meta },options)
96
109
}
97
110
98
111
/**
99
-
* Retrieves the status of a previously submitted async search request given its ID.
112
+
* Get async search status Retrieves the status of a previously submitted async search request given its identifier, without retrieving search results. If the Elasticsearch security features are enabled, use of this API is restricted to the `monitoring_user` role.
100
113
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/master/async-search.html | Elasticsearch API documentation}
returnawaitthis.transport.request({ path, method, querystring, body },options)
134
+
constmeta: TransportRequestMetadata={
135
+
name: 'async_search.status',
136
+
pathParts: {
137
+
id: params.id
138
+
}
139
+
}
140
+
returnawaitthis.transport.request({ path, method, querystring, body, meta },options)
122
141
}
123
142
124
143
/**
125
-
* Executes a search request asynchronously.
144
+
* Runs a search request asynchronously. When the primary sort of the results is an indexed field, shards get sorted based on minimum and maximum value that they hold for that field, hence partial results become available following the sort criteria that was requested. Warning: Async search does not support scroll nor search requests that only include the suggest section. By default, Elasticsearch doesn’t allow you to store an async search response larger than 10Mb and an attempt to do this results in an error. The maximum allowed size for a stored async search response can be set by changing the `search.max_async_search_response_size` cluster level setting.
126
145
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/master/async-search.html | Elasticsearch API documentation}
Copy file name to clipboardExpand all lines: src/api/api/bulk.ts
+9-2Lines changed: 9 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -28,6 +28,7 @@
28
28
29
29
import{
30
30
Transport,
31
+
TransportRequestMetadata,
31
32
TransportRequestOptions,
32
33
TransportRequestOptionsWithMeta,
33
34
TransportRequestOptionsWithOutMeta,
@@ -38,7 +39,7 @@ import * as TB from '../typesWithBodyKey'
38
39
interfaceThat{transport: Transport}
39
40
40
41
/**
41
-
* Allows to perform multiple index/update/delete operations in a single request.
42
+
* Bulk index or delete documents. Performs multiple indexing or delete operations in a single API call. This reduces overhead and can greatly increase indexing speed.
42
43
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-bulk.html | Elasticsearch API documentation}
0 commit comments