Skip to content

Commit 8eeb5e8

Browse files
committed
[codegen] update to latest spec
1 parent 334323f commit 8eeb5e8

File tree

165 files changed

+6200
-2057
lines changed

Some content is hidden

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

165 files changed

+6200
-2057
lines changed

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

Lines changed: 220 additions & 26 deletions
Large diffs are not rendered by default.

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

Lines changed: 220 additions & 26 deletions
Large diffs are not rendered by default.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
/**
6060
*
6161
* @see <a href=
62-
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.16/sort-search-results.html">Documentation
62+
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.17/sort-search-results.html">Documentation
6363
* on elastic.co</a>
6464
* @see <a href="../doc-files/api-spec.html#_types.SortOptions">API
6565
* specification</a>

java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/Normalizer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
/**
5858
*
5959
* @see <a href=
60-
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.16/analysis-normalizers.html">Documentation
60+
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.17/analysis-normalizers.html">Documentation
6161
* on elastic.co</a>
6262
* @see <a href="../../doc-files/api-spec.html#_types.analysis.Normalizer">API
6363
* specification</a>

java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/GeoShapeProperty.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
* searching with arbitrary geo shapes such as rectangles and polygons.
5454
*
5555
* @see <a href=
56-
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.16/geo-shape.html">Documentation
56+
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.17/geo-shape.html">Documentation
5757
* on elastic.co</a>
5858
* @see <a href=
5959
* "../../doc-files/api-spec.html#_types.mapping.GeoShapeProperty">API

java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/ShapeProperty.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
* polygons.
5555
*
5656
* @see <a href=
57-
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.16/shape.html">Documentation
57+
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.17/shape.html">Documentation
5858
* on elastic.co</a>
5959
* @see <a href="../../doc-files/api-spec.html#_types.mapping.ShapeProperty">API
6060
* specification</a>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
* the text.
6161
*
6262
* @see <a href=
63-
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.16/query-dsl-mlt-query.html#_document_input_parameters">Documentation
63+
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.17/query-dsl-mlt-query.html#_document_input_parameters">Documentation
6464
* on elastic.co</a>
6565
* @see <a href="../../doc-files/api-spec.html#_types.query_dsl.Like">API
6666
* specification</a>

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

Lines changed: 0 additions & 3 deletions
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/8.16/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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 6 additions & 6 deletions
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

Lines changed: 94 additions & 78 deletions
Large diffs are not rendered by default.

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

Lines changed: 94 additions & 78 deletions
Original file line numberDiff line numberDiff line change
@@ -71,15 +71,15 @@ public ElasticsearchAsyncSearchClient withTransportOptions(@Nullable TransportOp
7171
// ----- Endpoint: async_search.delete
7272

7373
/**
74-
* Deletes an async search by identifier. If the search is still running, the
75-
* search request will be cancelled. Otherwise, the saved search results are
76-
* deleted. If the Elasticsearch security features are enabled, the deletion of
77-
* a specific async search is restricted to: the authenticated user that
78-
* submitted the original search request; users that have the
79-
* <code>cancel_task</code> cluster privilege.
74+
* Delete an async search. If the asynchronous search is still running, it is
75+
* cancelled. Otherwise, the saved search results are deleted. If the
76+
* Elasticsearch security features are enabled, the deletion of a specific async
77+
* search is restricted to: the authenticated user that submitted the original
78+
* search request; users that have the <code>cancel_task</code> cluster
79+
* privilege.
8080
*
8181
* @see <a href=
82-
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.16/async-search.html">Documentation
82+
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.17/async-search.html">Documentation
8383
* on elastic.co</a>
8484
*/
8585

@@ -92,18 +92,18 @@ public DeleteAsyncSearchResponse delete(DeleteAsyncSearchRequest request)
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
104104
* {@link DeleteAsyncSearchRequest}
105105
* @see <a href=
106-
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.16/async-search.html">Documentation
106+
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.17/async-search.html">Documentation
107107
* on elastic.co</a>
108108
*/
109109

@@ -116,13 +116,13 @@ public final DeleteAsyncSearchResponse delete(
116116
// ----- Endpoint: async_search.get
117117

118118
/**
119-
* Retrieves the results of a previously submitted async search request given
120-
* its identifier. If the Elasticsearch security features are enabled, access to
121-
* the results of a specific async search is restricted to the user or API key
122-
* that submitted it.
119+
* Get async search results. Retrieve the results of a previously submitted
120+
* asynchronous search request. If the Elasticsearch security features are
121+
* enabled, access to the results of a specific async search is restricted to
122+
* the user or API key that submitted it.
123123
*
124124
* @see <a href=
125-
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.16/async-search.html">Documentation
125+
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.17/async-search.html">Documentation
126126
* on elastic.co</a>
127127
*/
128128

@@ -137,16 +137,16 @@ public <TDocument> GetAsyncSearchResponse<TDocument> get(GetAsyncSearchRequest r
137137
}
138138

139139
/**
140-
* Retrieves the results of a previously submitted async search request given
141-
* its identifier. If the Elasticsearch security features are enabled, access to
142-
* the results of a specific async search is restricted to the user or API key
143-
* that submitted it.
140+
* Get async search results. Retrieve the results of a previously submitted
141+
* asynchronous search request. If the Elasticsearch security features are
142+
* enabled, access to the results of a specific async search is restricted to
143+
* the user or API key that submitted it.
144144
*
145145
* @param fn
146146
* a function that initializes a builder to create the
147147
* {@link GetAsyncSearchRequest}
148148
* @see <a href=
149-
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.16/async-search.html">Documentation
149+
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.17/async-search.html">Documentation
150150
* on elastic.co</a>
151151
*/
152152

@@ -157,13 +157,13 @@ public final <TDocument> GetAsyncSearchResponse<TDocument> get(
157157
}
158158

159159
/**
160-
* Retrieves the results of a previously submitted async search request given
161-
* its identifier. If the Elasticsearch security features are enabled, access to
162-
* the results of a specific async search is restricted to the user or API key
163-
* that submitted it.
160+
* Get async search results. Retrieve the results of a previously submitted
161+
* asynchronous search request. If the Elasticsearch security features are
162+
* enabled, access to the results of a specific async search is restricted to
163+
* the user or API key that submitted it.
164164
*
165165
* @see <a href=
166-
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.16/async-search.html">Documentation
166+
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.17/async-search.html">Documentation
167167
* on elastic.co</a>
168168
*/
169169

@@ -178,16 +178,16 @@ public <TDocument> GetAsyncSearchResponse<TDocument> get(GetAsyncSearchRequest r
178178
}
179179

180180
/**
181-
* Retrieves the results of a previously submitted async search request given
182-
* its identifier. If the Elasticsearch security features are enabled, access to
183-
* the results of a specific async search is restricted to the user or API key
184-
* that submitted it.
181+
* Get async search results. Retrieve the results of a previously submitted
182+
* asynchronous search request. If the Elasticsearch security features are
183+
* enabled, access to the results of a specific async search is restricted to
184+
* the user or API key that submitted it.
185185
*
186186
* @param fn
187187
* a function that initializes a builder to create the
188188
* {@link GetAsyncSearchRequest}
189189
* @see <a href=
190-
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.16/async-search.html">Documentation
190+
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.17/async-search.html">Documentation
191191
* on elastic.co</a>
192192
*/
193193

@@ -200,13 +200,13 @@ public final <TDocument> GetAsyncSearchResponse<TDocument> get(
200200
// ----- Endpoint: async_search.status
201201

202202
/**
203-
* Get async search status Retrieves the status of a previously submitted async
203+
* Get async search status. Retrieve the status of a previously submitted async
204204
* search request given its identifier, without retrieving search results. If
205205
* the Elasticsearch security features are enabled, use of this API is
206206
* restricted to the <code>monitoring_user</code> role.
207207
*
208208
* @see <a href=
209-
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.16/async-search.html">Documentation
209+
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.17/async-search.html">Documentation
210210
* on elastic.co</a>
211211
*/
212212

@@ -219,7 +219,7 @@ public AsyncSearchStatusResponse status(AsyncSearchStatusRequest request)
219219
}
220220

221221
/**
222-
* Get async search status Retrieves the status of a previously submitted async
222+
* Get async search status. Retrieve the status of a previously submitted async
223223
* search request given its identifier, without retrieving search results. If
224224
* the Elasticsearch security features are enabled, use of this API is
225225
* restricted to the <code>monitoring_user</code> role.
@@ -228,7 +228,7 @@ public AsyncSearchStatusResponse status(AsyncSearchStatusRequest request)
228228
* a function that initializes a builder to create the
229229
* {@link AsyncSearchStatusRequest}
230230
* @see <a href=
231-
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.16/async-search.html">Documentation
231+
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.17/async-search.html">Documentation
232232
* on elastic.co</a>
233233
*/
234234

@@ -241,18 +241,22 @@ public final AsyncSearchStatusResponse status(
241241
// ----- Endpoint: async_search.submit
242242

243243
/**
244-
* Runs a search request asynchronously. When the primary sort of the results is
245-
* an indexed field, shards get sorted based on minimum and maximum value that
246-
* they hold for that field, hence partial results become available following
247-
* the sort criteria that was requested. Warning: Async search does not support
248-
* scroll nor search requests that only include the suggest section. By default,
249-
* Elasticsearch doesn’t allow you to store an async search response larger than
250-
* 10Mb and an attempt to do this results in an error. The maximum allowed size
251-
* for a stored async search response can be set by changing the
252-
* <code>search.max_async_search_response_size</code> cluster level setting.
244+
* Run an async search. When the primary sort of the results is an indexed
245+
* field, shards get sorted based on minimum and maximum value that they hold
246+
* for that field. Partial results become available following the sort criteria
247+
* that was requested.
248+
* <p>
249+
* Warning: Asynchronous search does not support scroll or search requests that
250+
* include only the suggest section.
251+
* <p>
252+
* By default, Elasticsearch does not allow you to store an async search
253+
* response larger than 10Mb and an attempt to do this results in an error. The
254+
* maximum allowed size for a stored async search response can be set by
255+
* changing the <code>search.max_async_search_response_size</code> cluster level
256+
* setting.
253257
*
254258
* @see <a href=
255-
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.16/async-search.html">Documentation
259+
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.17/async-search.html">Documentation
256260
* on elastic.co</a>
257261
*/
258262

@@ -268,21 +272,25 @@ public <TDocument> SubmitResponse<TDocument> submit(SubmitRequest request, Class
268272
}
269273

270274
/**
271-
* Runs a search request asynchronously. When the primary sort of the results is
272-
* an indexed field, shards get sorted based on minimum and maximum value that
273-
* they hold for that field, hence partial results become available following
274-
* the sort criteria that was requested. Warning: Async search does not support
275-
* scroll nor search requests that only include the suggest section. By default,
276-
* Elasticsearch doesn’t allow you to store an async search response larger than
277-
* 10Mb and an attempt to do this results in an error. The maximum allowed size
278-
* for a stored async search response can be set by changing the
279-
* <code>search.max_async_search_response_size</code> cluster level setting.
275+
* Run an async search. When the primary sort of the results is an indexed
276+
* field, shards get sorted based on minimum and maximum value that they hold
277+
* for that field. Partial results become available following the sort criteria
278+
* that was requested.
279+
* <p>
280+
* Warning: Asynchronous search does not support scroll or search requests that
281+
* include only the suggest section.
282+
* <p>
283+
* By default, Elasticsearch does not allow you to store an async search
284+
* response larger than 10Mb and an attempt to do this results in an error. The
285+
* maximum allowed size for a stored async search response can be set by
286+
* changing the <code>search.max_async_search_response_size</code> cluster level
287+
* setting.
280288
*
281289
* @param fn
282290
* a function that initializes a builder to create the
283291
* {@link SubmitRequest}
284292
* @see <a href=
285-
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.16/async-search.html">Documentation
293+
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.17/async-search.html">Documentation
286294
* on elastic.co</a>
287295
*/
288296

@@ -293,18 +301,22 @@ public final <TDocument> SubmitResponse<TDocument> submit(
293301
}
294302

295303
/**
296-
* Runs a search request asynchronously. When the primary sort of the results is
297-
* an indexed field, shards get sorted based on minimum and maximum value that
298-
* they hold for that field, hence partial results become available following
299-
* the sort criteria that was requested. Warning: Async search does not support
300-
* scroll nor search requests that only include the suggest section. By default,
301-
* Elasticsearch doesn’t allow you to store an async search response larger than
302-
* 10Mb and an attempt to do this results in an error. The maximum allowed size
303-
* for a stored async search response can be set by changing the
304-
* <code>search.max_async_search_response_size</code> cluster level setting.
304+
* Run an async search. When the primary sort of the results is an indexed
305+
* field, shards get sorted based on minimum and maximum value that they hold
306+
* for that field. Partial results become available following the sort criteria
307+
* that was requested.
308+
* <p>
309+
* Warning: Asynchronous search does not support scroll or search requests that
310+
* include only the suggest section.
311+
* <p>
312+
* By default, Elasticsearch does not allow you to store an async search
313+
* response larger than 10Mb and an attempt to do this results in an error. The
314+
* maximum allowed size for a stored async search response can be set by
315+
* changing the <code>search.max_async_search_response_size</code> cluster level
316+
* setting.
305317
*
306318
* @see <a href=
307-
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.16/async-search.html">Documentation
319+
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.17/async-search.html">Documentation
308320
* on elastic.co</a>
309321
*/
310322

@@ -320,21 +332,25 @@ public <TDocument> SubmitResponse<TDocument> submit(SubmitRequest request, Type
320332
}
321333

322334
/**
323-
* Runs a search request asynchronously. When the primary sort of the results is
324-
* an indexed field, shards get sorted based on minimum and maximum value that
325-
* they hold for that field, hence partial results become available following
326-
* the sort criteria that was requested. Warning: Async search does not support
327-
* scroll nor search requests that only include the suggest section. By default,
328-
* Elasticsearch doesn’t allow you to store an async search response larger than
329-
* 10Mb and an attempt to do this results in an error. The maximum allowed size
330-
* for a stored async search response can be set by changing the
331-
* <code>search.max_async_search_response_size</code> cluster level setting.
335+
* Run an async search. When the primary sort of the results is an indexed
336+
* field, shards get sorted based on minimum and maximum value that they hold
337+
* for that field. Partial results become available following the sort criteria
338+
* that was requested.
339+
* <p>
340+
* Warning: Asynchronous search does not support scroll or search requests that
341+
* include only the suggest section.
342+
* <p>
343+
* By default, Elasticsearch does not allow you to store an async search
344+
* response larger than 10Mb and an attempt to do this results in an error. The
345+
* maximum allowed size for a stored async search response can be set by
346+
* changing the <code>search.max_async_search_response_size</code> cluster level
347+
* setting.
332348
*
333349
* @param fn
334350
* a function that initializes a builder to create the
335351
* {@link SubmitRequest}
336352
* @see <a href=
337-
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.16/async-search.html">Documentation
353+
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.17/async-search.html">Documentation
338354
* on elastic.co</a>
339355
*/
340356

0 commit comments

Comments
 (0)