Skip to content

Commit d451d9e

Browse files
committed
[codegen] update to latest spec
1 parent d9cb8c5 commit d451d9e

File tree

142 files changed

+6495
-2186
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

142 files changed

+6495
-2186
lines changed

java-client/src/main/java/co/elastic/clients/elasticsearch/ElasticsearchAsyncClient.java

+285-33
Large diffs are not rendered by default.

java-client/src/main/java/co/elastic/clients/elasticsearch/ElasticsearchClient.java

+285-33
Large diffs are not rendered by default.

java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/Query.java

-3
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,6 @@
6262
/**
6363
*
6464
* @see <a href=
65-
* "https://www.elastic.co/guide/en/elasticsearch/reference/9.0/query-dsl.html">Documentation
66-
* on elastic.co</a>
67-
* @see <a href=
6865
* "../../doc-files/api-spec.html#_types.query_dsl.QueryContainer">API
6966
* specification</a>
7067
*/

java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/AsyncSearchStatusRequest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
// typedef: async_search.status.Request
5757

5858
/**
59-
* Get async search status Retrieves the status of a previously submitted async
59+
* Get async search status. Retrieve the status of a previously submitted async
6060
* search request given its identifier, without retrieving search results. If
6161
* the Elasticsearch security features are enabled, use of this API is
6262
* restricted to the <code>monitoring_user</code> role.

java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/DeleteAsyncSearchRequest.java

+6-6
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,12 @@
5656
// typedef: async_search.delete.Request
5757

5858
/**
59-
* Deletes an async search by identifier. If the search is still running, the
60-
* search request will be cancelled. Otherwise, the saved search results are
61-
* deleted. If the Elasticsearch security features are enabled, the deletion of
62-
* a specific async search is restricted to: the authenticated user that
63-
* submitted the original search request; users that have the
64-
* <code>cancel_task</code> cluster privilege.
59+
* Delete an async search. If the asynchronous search is still running, it is
60+
* cancelled. Otherwise, the saved search results are deleted. If the
61+
* Elasticsearch security features are enabled, the deletion of a specific async
62+
* search is restricted to: the authenticated user that submitted the original
63+
* search request; users that have the <code>cancel_task</code> cluster
64+
* privilege.
6565
*
6666
* @see <a href="../doc-files/api-spec.html#async_search.delete.Request">API
6767
* specification</a>

java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/ElasticsearchAsyncSearchAsyncClient.java

+82-66
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,12 @@ public ElasticsearchAsyncSearchAsyncClient withTransportOptions(@Nullable Transp
7272
// ----- Endpoint: async_search.delete
7373

7474
/**
75-
* Deletes an async search by identifier. If the search is still running, the
76-
* search request will be cancelled. Otherwise, the saved search results are
77-
* deleted. If the Elasticsearch security features are enabled, the deletion of
78-
* a specific async search is restricted to: the authenticated user that
79-
* submitted the original search request; users that have the
80-
* <code>cancel_task</code> cluster privilege.
75+
* Delete an async search. If the asynchronous search is still running, it is
76+
* cancelled. Otherwise, the saved search results are deleted. If the
77+
* Elasticsearch security features are enabled, the deletion of a specific async
78+
* search is restricted to: the authenticated user that submitted the original
79+
* search request; users that have the <code>cancel_task</code> cluster
80+
* privilege.
8181
*
8282
* @see <a href=
8383
* "https://www.elastic.co/guide/en/elasticsearch/reference/9.0/async-search.html">Documentation
@@ -92,12 +92,12 @@ public CompletableFuture<DeleteAsyncSearchResponse> delete(DeleteAsyncSearchRequ
9292
}
9393

9494
/**
95-
* Deletes an async search by identifier. If the search is still running, the
96-
* search request will be cancelled. Otherwise, the saved search results are
97-
* deleted. If the Elasticsearch security features are enabled, the deletion of
98-
* a specific async search is restricted to: the authenticated user that
99-
* submitted the original search request; users that have the
100-
* <code>cancel_task</code> cluster privilege.
95+
* Delete an async search. If the asynchronous search is still running, it is
96+
* cancelled. Otherwise, the saved search results are deleted. If the
97+
* Elasticsearch security features are enabled, the deletion of a specific async
98+
* search is restricted to: the authenticated user that submitted the original
99+
* search request; users that have the <code>cancel_task</code> cluster
100+
* privilege.
101101
*
102102
* @param fn
103103
* a function that initializes a builder to create the
@@ -115,10 +115,10 @@ public final CompletableFuture<DeleteAsyncSearchResponse> delete(
115115
// ----- Endpoint: async_search.get
116116

117117
/**
118-
* Retrieves the results of a previously submitted async search request given
119-
* its identifier. If the Elasticsearch security features are enabled, access to
120-
* the results of a specific async search is restricted to the user or API key
121-
* that submitted it.
118+
* Get async search results. Retrieve the results of a previously submitted
119+
* asynchronous search request. If the Elasticsearch security features are
120+
* enabled, access to the results of a specific async search is restricted to
121+
* the user or API key that submitted it.
122122
*
123123
* @see <a href=
124124
* "https://www.elastic.co/guide/en/elasticsearch/reference/9.0/async-search.html">Documentation
@@ -136,10 +136,10 @@ public <TDocument> CompletableFuture<GetAsyncSearchResponse<TDocument>> get(GetA
136136
}
137137

138138
/**
139-
* Retrieves the results of a previously submitted async search request given
140-
* its identifier. If the Elasticsearch security features are enabled, access to
141-
* the results of a specific async search is restricted to the user or API key
142-
* that submitted it.
139+
* Get async search results. Retrieve the results of a previously submitted
140+
* asynchronous search request. If the Elasticsearch security features are
141+
* enabled, access to the results of a specific async search is restricted to
142+
* the user or API key that submitted it.
143143
*
144144
* @param fn
145145
* a function that initializes a builder to create the
@@ -156,10 +156,10 @@ public final <TDocument> CompletableFuture<GetAsyncSearchResponse<TDocument>> ge
156156
}
157157

158158
/**
159-
* Retrieves the results of a previously submitted async search request given
160-
* its identifier. If the Elasticsearch security features are enabled, access to
161-
* the results of a specific async search is restricted to the user or API key
162-
* that submitted it.
159+
* Get async search results. Retrieve the results of a previously submitted
160+
* asynchronous search request. If the Elasticsearch security features are
161+
* enabled, access to the results of a specific async search is restricted to
162+
* the user or API key that submitted it.
163163
*
164164
* @see <a href=
165165
* "https://www.elastic.co/guide/en/elasticsearch/reference/9.0/async-search.html">Documentation
@@ -177,10 +177,10 @@ public <TDocument> CompletableFuture<GetAsyncSearchResponse<TDocument>> get(GetA
177177
}
178178

179179
/**
180-
* Retrieves the results of a previously submitted async search request given
181-
* its identifier. If the Elasticsearch security features are enabled, access to
182-
* the results of a specific async search is restricted to the user or API key
183-
* that submitted it.
180+
* Get async search results. Retrieve the results of a previously submitted
181+
* asynchronous search request. If the Elasticsearch security features are
182+
* enabled, access to the results of a specific async search is restricted to
183+
* the user or API key that submitted it.
184184
*
185185
* @param fn
186186
* a function that initializes a builder to create the
@@ -198,7 +198,7 @@ public final <TDocument> CompletableFuture<GetAsyncSearchResponse<TDocument>> ge
198198
// ----- Endpoint: async_search.status
199199

200200
/**
201-
* Get async search status Retrieves the status of a previously submitted async
201+
* Get async search status. Retrieve the status of a previously submitted async
202202
* search request given its identifier, without retrieving search results. If
203203
* the Elasticsearch security features are enabled, use of this API is
204204
* restricted to the <code>monitoring_user</code> role.
@@ -216,7 +216,7 @@ public CompletableFuture<AsyncSearchStatusResponse> status(AsyncSearchStatusRequ
216216
}
217217

218218
/**
219-
* Get async search status Retrieves the status of a previously submitted async
219+
* Get async search status. Retrieve the status of a previously submitted async
220220
* search request given its identifier, without retrieving search results. If
221221
* the Elasticsearch security features are enabled, use of this API is
222222
* restricted to the <code>monitoring_user</code> role.
@@ -237,15 +237,19 @@ public final CompletableFuture<AsyncSearchStatusResponse> status(
237237
// ----- Endpoint: async_search.submit
238238

239239
/**
240-
* Runs a search request asynchronously. When the primary sort of the results is
241-
* an indexed field, shards get sorted based on minimum and maximum value that
242-
* they hold for that field, hence partial results become available following
243-
* the sort criteria that was requested. Warning: Async search does not support
244-
* scroll nor search requests that only include the suggest section. By default,
245-
* Elasticsearch doesn’t allow you to store an async search response larger than
246-
* 10Mb and an attempt to do this results in an error. The maximum allowed size
247-
* for a stored async search response can be set by changing the
248-
* <code>search.max_async_search_response_size</code> cluster level setting.
240+
* Run an async search. When the primary sort of the results is an indexed
241+
* field, shards get sorted based on minimum and maximum value that they hold
242+
* for that field. Partial results become available following the sort criteria
243+
* that was requested.
244+
* <p>
245+
* Warning: Asynchronous search does not support scroll or search requests that
246+
* include only the suggest section.
247+
* <p>
248+
* By default, Elasticsearch does not allow you to store an async search
249+
* response larger than 10Mb and an attempt to do this results in an error. The
250+
* maximum allowed size for a stored async search response can be set by
251+
* changing the <code>search.max_async_search_response_size</code> cluster level
252+
* setting.
249253
*
250254
* @see <a href=
251255
* "https://www.elastic.co/guide/en/elasticsearch/reference/9.0/async-search.html">Documentation
@@ -264,15 +268,19 @@ public <TDocument> CompletableFuture<SubmitResponse<TDocument>> submit(SubmitReq
264268
}
265269

266270
/**
267-
* Runs a search request asynchronously. When the primary sort of the results is
268-
* an indexed field, shards get sorted based on minimum and maximum value that
269-
* they hold for that field, hence partial results become available following
270-
* the sort criteria that was requested. Warning: Async search does not support
271-
* scroll nor search requests that only include the suggest section. By default,
272-
* Elasticsearch doesn’t allow you to store an async search response larger than
273-
* 10Mb and an attempt to do this results in an error. The maximum allowed size
274-
* for a stored async search response can be set by changing the
275-
* <code>search.max_async_search_response_size</code> cluster level setting.
271+
* Run an async search. When the primary sort of the results is an indexed
272+
* field, shards get sorted based on minimum and maximum value that they hold
273+
* for that field. Partial results become available following the sort criteria
274+
* that was requested.
275+
* <p>
276+
* Warning: Asynchronous search does not support scroll or search requests that
277+
* include only the suggest section.
278+
* <p>
279+
* By default, Elasticsearch does not allow you to store an async search
280+
* response larger than 10Mb and an attempt to do this results in an error. The
281+
* maximum allowed size for a stored async search response can be set by
282+
* changing the <code>search.max_async_search_response_size</code> cluster level
283+
* setting.
276284
*
277285
* @param fn
278286
* a function that initializes a builder to create the
@@ -288,15 +296,19 @@ public final <TDocument> CompletableFuture<SubmitResponse<TDocument>> submit(
288296
}
289297

290298
/**
291-
* Runs a search request asynchronously. When the primary sort of the results is
292-
* an indexed field, shards get sorted based on minimum and maximum value that
293-
* they hold for that field, hence partial results become available following
294-
* the sort criteria that was requested. Warning: Async search does not support
295-
* scroll nor search requests that only include the suggest section. By default,
296-
* Elasticsearch doesn’t allow you to store an async search response larger than
297-
* 10Mb and an attempt to do this results in an error. The maximum allowed size
298-
* for a stored async search response can be set by changing the
299-
* <code>search.max_async_search_response_size</code> cluster level setting.
299+
* Run an async search. When the primary sort of the results is an indexed
300+
* field, shards get sorted based on minimum and maximum value that they hold
301+
* for that field. Partial results become available following the sort criteria
302+
* that was requested.
303+
* <p>
304+
* Warning: Asynchronous search does not support scroll or search requests that
305+
* include only the suggest section.
306+
* <p>
307+
* By default, Elasticsearch does not allow you to store an async search
308+
* response larger than 10Mb and an attempt to do this results in an error. The
309+
* maximum allowed size for a stored async search response can be set by
310+
* changing the <code>search.max_async_search_response_size</code> cluster level
311+
* setting.
300312
*
301313
* @see <a href=
302314
* "https://www.elastic.co/guide/en/elasticsearch/reference/9.0/async-search.html">Documentation
@@ -314,15 +326,19 @@ public <TDocument> CompletableFuture<SubmitResponse<TDocument>> submit(SubmitReq
314326
}
315327

316328
/**
317-
* Runs a search request asynchronously. When the primary sort of the results is
318-
* an indexed field, shards get sorted based on minimum and maximum value that
319-
* they hold for that field, hence partial results become available following
320-
* the sort criteria that was requested. Warning: Async search does not support
321-
* scroll nor search requests that only include the suggest section. By default,
322-
* Elasticsearch doesn’t allow you to store an async search response larger than
323-
* 10Mb and an attempt to do this results in an error. The maximum allowed size
324-
* for a stored async search response can be set by changing the
325-
* <code>search.max_async_search_response_size</code> cluster level setting.
329+
* Run an async search. When the primary sort of the results is an indexed
330+
* field, shards get sorted based on minimum and maximum value that they hold
331+
* for that field. Partial results become available following the sort criteria
332+
* that was requested.
333+
* <p>
334+
* Warning: Asynchronous search does not support scroll or search requests that
335+
* include only the suggest section.
336+
* <p>
337+
* By default, Elasticsearch does not allow you to store an async search
338+
* response larger than 10Mb and an attempt to do this results in an error. The
339+
* maximum allowed size for a stored async search response can be set by
340+
* changing the <code>search.max_async_search_response_size</code> cluster level
341+
* setting.
326342
*
327343
* @param fn
328344
* a function that initializes a builder to create the

0 commit comments

Comments
 (0)