Skip to content

Commit 6c71495

Browse files
committed
[codegen] update to latest spec
1 parent c6751de commit 6c71495

40 files changed

+1991
-698
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ public static <TDocument> AsyncSearch<TDocument> of(
142142

143143
/**
144144
* Partial aggregations results, coming from the shards that have already
145-
* completed the execution of the query.
145+
* completed running the query.
146146
* <p>
147147
* API name: {@code aggregations}
148148
*/
@@ -395,7 +395,7 @@ public static class Builder<TDocument> extends WithJsonObjectBuilderBase<Builder
395395

396396
/**
397397
* Partial aggregations results, coming from the shards that have already
398-
* completed the execution of the query.
398+
* completed running the query.
399399
* <p>
400400
* API name: {@code aggregations}
401401
* <p>
@@ -408,7 +408,7 @@ public final Builder<TDocument> aggregations(Map<String, Aggregate> map) {
408408

409409
/**
410410
* Partial aggregations results, coming from the shards that have already
411-
* completed the execution of the query.
411+
* completed running the query.
412412
* <p>
413413
* API name: {@code aggregations}
414414
* <p>
@@ -421,7 +421,7 @@ public final Builder<TDocument> aggregations(String key, Aggregate value) {
421421

422422
/**
423423
* Partial aggregations results, coming from the shards that have already
424-
* completed the execution of the query.
424+
* completed running the query.
425425
* <p>
426426
* API name: {@code aggregations}
427427
* <p>

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

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,13 @@ public final boolean isPartial() {
124124

125125
/**
126126
* Required - Indicates whether the search is still running or has completed.
127-
* NOTE: If the search failed after some shards returned their results or the
127+
* <blockquote>
128+
* <p>
129+
* info If the search failed after some shards returned their results or the
128130
* node that is coordinating the async search dies, results may be partial even
129131
* though <code>is_running</code> is <code>false</code>.
132+
* </p>
133+
* </blockquote>
130134
* <p>
131135
* API name: {@code is_running}
132136
*/
@@ -167,8 +171,8 @@ public final long startTimeInMillis() {
167171
}
168172

169173
/**
170-
* Indicates when the async search completed. Only present when the search has
171-
* completed.
174+
* Indicates when the async search completed. It is present only when the search
175+
* has completed.
172176
* <p>
173177
* API name: {@code completion_time}
174178
*/
@@ -287,9 +291,13 @@ public final BuilderT isPartial(boolean value) {
287291

288292
/**
289293
* Required - Indicates whether the search is still running or has completed.
290-
* NOTE: If the search failed after some shards returned their results or the
294+
* <blockquote>
295+
* <p>
296+
* info If the search failed after some shards returned their results or the
291297
* node that is coordinating the async search dies, results may be partial even
292298
* though <code>is_running</code> is <code>false</code>.
299+
* </p>
300+
* </blockquote>
293301
* <p>
294302
* API name: {@code is_running}
295303
*/
@@ -333,8 +341,8 @@ public final BuilderT startTimeInMillis(long value) {
333341
}
334342

335343
/**
336-
* Indicates when the async search completed. Only present when the search has
337-
* completed.
344+
* Indicates when the async search completed. It is present only when the search
345+
* has completed.
338346
* <p>
339347
* API name: {@code completion_time}
340348
*/

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

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,15 @@
6060
* <p>
6161
* Get the status of a previously submitted async search request given its
6262
* identifier, without retrieving search results. If the Elasticsearch security
63-
* features are enabled, use of this API is restricted to the
64-
* <code>monitoring_user</code> role.
65-
*
63+
* features are enabled, the access to the status of a specific async search is
64+
* restricted to:
65+
* <ul>
66+
* <li>The user or API key that submitted the original async search
67+
* request.</li>
68+
* <li>Users that have the <code>monitor</code> cluster privilege or greater
69+
* privileges.</li>
70+
* </ul>
71+
*
6672
* @see <a href="../doc-files/api-spec.html#async_search.status.Request">API
6773
* specification</a>
6874
*/
@@ -96,7 +102,7 @@ public final String id() {
96102
}
97103

98104
/**
99-
* Specifies how long the async search needs to be available. Ongoing async
105+
* The length of time that the async search needs to be available. Ongoing async
100106
* searches and any saved search results are deleted after this period.
101107
* <p>
102108
* API name: {@code keep_alive}
@@ -131,7 +137,7 @@ public final Builder id(String value) {
131137
}
132138

133139
/**
134-
* Specifies how long the async search needs to be available. Ongoing async
140+
* The length of time that the async search needs to be available. Ongoing async
135141
* searches and any saved search results are deleted after this period.
136142
* <p>
137143
* API name: {@code keep_alive}
@@ -142,7 +148,7 @@ public final Builder keepAlive(@Nullable Time value) {
142148
}
143149

144150
/**
145-
* Specifies how long the async search needs to be available. Ongoing async
151+
* The length of time that the async search needs to be available. Ongoing async
146152
* searches and any saved search results are deleted after this period.
147153
* <p>
148154
* API name: {@code keep_alive}

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

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -212,9 +212,15 @@ public final <TDocument> CompletableFuture<GetAsyncSearchResponse<TDocument>> ge
212212
* <p>
213213
* Get the status of a previously submitted async search request given its
214214
* identifier, without retrieving search results. If the Elasticsearch security
215-
* features are enabled, use of this API is restricted to the
216-
* <code>monitoring_user</code> role.
217-
*
215+
* features are enabled, the access to the status of a specific async search is
216+
* restricted to:
217+
* <ul>
218+
* <li>The user or API key that submitted the original async search
219+
* request.</li>
220+
* <li>Users that have the <code>monitor</code> cluster privilege or greater
221+
* privileges.</li>
222+
* </ul>
223+
*
218224
* @see <a href=
219225
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.18/async-search.html">Documentation
220226
* on elastic.co</a>
@@ -232,9 +238,15 @@ public CompletableFuture<AsyncSearchStatusResponse> status(AsyncSearchStatusRequ
232238
* <p>
233239
* Get the status of a previously submitted async search request given its
234240
* identifier, without retrieving search results. If the Elasticsearch security
235-
* features are enabled, use of this API is restricted to the
236-
* <code>monitoring_user</code> role.
237-
*
241+
* features are enabled, the access to the status of a specific async search is
242+
* restricted to:
243+
* <ul>
244+
* <li>The user or API key that submitted the original async search
245+
* request.</li>
246+
* <li>Users that have the <code>monitor</code> cluster privilege or greater
247+
* privileges.</li>
248+
* </ul>
249+
*
238250
* @param fn
239251
* a function that initializes a builder to create the
240252
* {@link AsyncSearchStatusRequest}

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

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -214,9 +214,15 @@ public final <TDocument> GetAsyncSearchResponse<TDocument> get(
214214
* <p>
215215
* Get the status of a previously submitted async search request given its
216216
* identifier, without retrieving search results. If the Elasticsearch security
217-
* features are enabled, use of this API is restricted to the
218-
* <code>monitoring_user</code> role.
219-
*
217+
* features are enabled, the access to the status of a specific async search is
218+
* restricted to:
219+
* <ul>
220+
* <li>The user or API key that submitted the original async search
221+
* request.</li>
222+
* <li>Users that have the <code>monitor</code> cluster privilege or greater
223+
* privileges.</li>
224+
* </ul>
225+
*
220226
* @see <a href=
221227
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.18/async-search.html">Documentation
222228
* on elastic.co</a>
@@ -235,9 +241,15 @@ public AsyncSearchStatusResponse status(AsyncSearchStatusRequest request)
235241
* <p>
236242
* Get the status of a previously submitted async search request given its
237243
* identifier, without retrieving search results. If the Elasticsearch security
238-
* features are enabled, use of this API is restricted to the
239-
* <code>monitoring_user</code> role.
240-
*
244+
* features are enabled, the access to the status of a specific async search is
245+
* restricted to:
246+
* <ul>
247+
* <li>The user or API key that submitted the original async search
248+
* request.</li>
249+
* <li>Users that have the <code>monitor</code> cluster privilege or greater
250+
* privileges.</li>
251+
* </ul>
252+
*
241253
* @param fn
242254
* a function that initializes a builder to create the
243255
* {@link AsyncSearchStatusRequest}

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

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -100,12 +100,12 @@ public final String id() {
100100
}
101101

102102
/**
103-
* Specifies how long the async search should be available in the cluster. When
104-
* not specified, the <code>keep_alive</code> set with the corresponding submit
105-
* async request will be used. Otherwise, it is possible to override the value
106-
* and extend the validity of the request. When this period expires, the search,
107-
* if still running, is cancelled. If the search is completed, its saved results
108-
* are deleted.
103+
* The length of time that the async search should be available in the cluster.
104+
* When not specified, the <code>keep_alive</code> set with the corresponding
105+
* submit async request will be used. Otherwise, it is possible to override the
106+
* value and extend the validity of the request. When this period expires, the
107+
* search, if still running, is cancelled. If the search is completed, its saved
108+
* results are deleted.
109109
* <p>
110110
* API name: {@code keep_alive}
111111
*/
@@ -156,12 +156,12 @@ public final Builder id(String value) {
156156
}
157157

158158
/**
159-
* Specifies how long the async search should be available in the cluster. When
160-
* not specified, the <code>keep_alive</code> set with the corresponding submit
161-
* async request will be used. Otherwise, it is possible to override the value
162-
* and extend the validity of the request. When this period expires, the search,
163-
* if still running, is cancelled. If the search is completed, its saved results
164-
* are deleted.
159+
* The length of time that the async search should be available in the cluster.
160+
* When not specified, the <code>keep_alive</code> set with the corresponding
161+
* submit async request will be used. Otherwise, it is possible to override the
162+
* value and extend the validity of the request. When this period expires, the
163+
* search, if still running, is cancelled. If the search is completed, its saved
164+
* results are deleted.
165165
* <p>
166166
* API name: {@code keep_alive}
167167
*/
@@ -171,12 +171,12 @@ public final Builder keepAlive(@Nullable Time value) {
171171
}
172172

173173
/**
174-
* Specifies how long the async search should be available in the cluster. When
175-
* not specified, the <code>keep_alive</code> set with the corresponding submit
176-
* async request will be used. Otherwise, it is possible to override the value
177-
* and extend the validity of the request. When this period expires, the search,
178-
* if still running, is cancelled. If the search is completed, its saved results
179-
* are deleted.
174+
* The length of time that the async search should be available in the cluster.
175+
* When not specified, the <code>keep_alive</code> set with the corresponding
176+
* submit async request will be used. Otherwise, it is possible to override the
177+
* value and extend the validity of the request. When this period expires, the
178+
* search, if still running, is cancelled. If the search is completed, its saved
179+
* results are deleted.
180180
* <p>
181181
* API name: {@code keep_alive}
182182
*/

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

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ protected StatusResponseBase(AbstractBuilder<?> builder) {
8181
}
8282

8383
/**
84-
* Required - Indicates how many shards have run the query so far.
84+
* Required - The number of shards that have run the query so far.
8585
* <p>
8686
* API name: {@code _shards}
8787
*/
@@ -90,8 +90,8 @@ public final ShardStatistics shards() {
9090
}
9191

9292
/**
93-
* Metadata about clusters involved in the cross-cluster search. Not shown for
94-
* local-only searches.
93+
* Metadata about clusters involved in the cross-cluster search. It is not shown
94+
* for local-only searches.
9595
* <p>
9696
* API name: {@code _clusters}
9797
*/
@@ -102,8 +102,9 @@ public final ClusterStatistics clusters() {
102102

103103
/**
104104
* If the async search completed, this field shows the status code of the
105-
* search. For example, 200 indicates that the async search was successfully
106-
* completed. 503 indicates that the async search was completed with an error.
105+
* search. For example, <code>200</code> indicates that the async search was
106+
* successfully completed. <code>503</code> indicates that the async search was
107+
* completed with an error.
107108
* <p>
108109
* API name: {@code completion_status}
109110
*/
@@ -143,7 +144,7 @@ public abstract static class AbstractBuilder<BuilderT extends AbstractBuilder<Bu
143144
private Integer completionStatus;
144145

145146
/**
146-
* Required - Indicates how many shards have run the query so far.
147+
* Required - The number of shards that have run the query so far.
147148
* <p>
148149
* API name: {@code _shards}
149150
*/
@@ -153,7 +154,7 @@ public final BuilderT shards(ShardStatistics value) {
153154
}
154155

155156
/**
156-
* Required - Indicates how many shards have run the query so far.
157+
* Required - The number of shards that have run the query so far.
157158
* <p>
158159
* API name: {@code _shards}
159160
*/
@@ -162,8 +163,8 @@ public final BuilderT shards(Function<ShardStatistics.Builder, ObjectBuilder<Sha
162163
}
163164

164165
/**
165-
* Metadata about clusters involved in the cross-cluster search. Not shown for
166-
* local-only searches.
166+
* Metadata about clusters involved in the cross-cluster search. It is not shown
167+
* for local-only searches.
167168
* <p>
168169
* API name: {@code _clusters}
169170
*/
@@ -173,8 +174,8 @@ public final BuilderT clusters(@Nullable ClusterStatistics value) {
173174
}
174175

175176
/**
176-
* Metadata about clusters involved in the cross-cluster search. Not shown for
177-
* local-only searches.
177+
* Metadata about clusters involved in the cross-cluster search. It is not shown
178+
* for local-only searches.
178179
* <p>
179180
* API name: {@code _clusters}
180181
*/
@@ -184,8 +185,9 @@ public final BuilderT clusters(Function<ClusterStatistics.Builder, ObjectBuilder
184185

185186
/**
186187
* If the async search completed, this field shows the status code of the
187-
* search. For example, 200 indicates that the async search was successfully
188-
* completed. 503 indicates that the async search was completed with an error.
188+
* search. For example, <code>200</code> indicates that the async search was
189+
* successfully completed. <code>503</code> indicates that the async search was
190+
* completed with an error.
189191
* <p>
190192
* API name: {@code completion_status}
191193
*/

0 commit comments

Comments
 (0)