Skip to content

Commit cc4cd06

Browse files
Backport 3973 to 8.18 (#4013)
* Various schema fixes (#3973) (cherry picked from commit b2d0e64) * update schema.json
1 parent cbd0af7 commit cc4cd06

File tree

7 files changed

+270
-7
lines changed

7 files changed

+270
-7
lines changed

output/openapi/elasticsearch-openapi.json

Lines changed: 37 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/openapi/elasticsearch-serverless-openapi.json

Lines changed: 32 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/schema/schema.json

Lines changed: 129 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/typescript/types.ts

Lines changed: 11 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

specification/_global/termvectors/TermVectorsRequest.ts

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,5 +183,57 @@ export interface Request<TDocument> extends RequestBase {
183183
* When providing an analyzer for a field that already stores term vectors, the term vectors will be regenerated.
184184
*/
185185
per_field_analyzer?: Dictionary<Field, string>
186+
/**
187+
* A list of fields to include in the statistics.
188+
* It is used as the default list unless a specific field list is provided in the `completion_fields` or `fielddata_fields` parameters.
189+
*/
190+
fields?: Fields
191+
/**
192+
* If `true`, the response includes:
193+
*
194+
* * The document count (how many documents contain this field).
195+
* * The sum of document frequencies (the sum of document frequencies for all terms in this field).
196+
* * The sum of total term frequencies (the sum of total term frequencies of each term in this field).
197+
* @server_default true
198+
*/
199+
field_statistics?: boolean
200+
/**
201+
* If `true`, the response includes term offsets.
202+
* @server_default true
203+
*/
204+
offsets?: boolean
205+
/**
206+
* If `true`, the response includes term payloads.
207+
* @server_default true
208+
*/
209+
payloads?: boolean
210+
/**
211+
* If `true`, the response includes term positions.
212+
* @server_default true
213+
*/
214+
positions?: boolean
215+
/**
216+
* If `true`, the response includes:
217+
*
218+
* * The total term frequency (how often a term occurs in all documents).
219+
* * The document frequency (the number of documents containing the current term).
220+
*
221+
* By default these values are not returned since term statistics can have a serious performance impact.
222+
*
223+
* @server_default false
224+
*/
225+
term_statistics?: boolean
226+
/**
227+
* A custom value that is used to route operations to a specific shard.
228+
*/
229+
routing?: Routing
230+
/**
231+
* If `true`, returns the document version as part of a hit.
232+
*/
233+
version?: VersionNumber
234+
/**
235+
* The version type.
236+
*/
237+
version_type?: VersionType
186238
}
187239
}

specification/esql/async_query/AsyncQueryRequest.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,5 +121,13 @@ export interface Request extends RequestBase {
121121
* @server_default false
122122
*/
123123
include_ccs_metadata?: boolean
124+
/**
125+
* The period to wait for the request to finish.
126+
* By default, the request waits for 1 second for the query results.
127+
* If the query completes during this period, results are returned
128+
* Otherwise, a query ID is returned that can later be used to retrieve the results.
129+
* @server_default 1s
130+
*/
131+
wait_for_completion_timeout?: Duration
124132
}
125133
}

specification/security/oidc_logout/Request.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export interface Request extends RequestBase {
4343
/**
4444
* The access token to be invalidated.
4545
*/
46-
access_token: string
46+
token: string
4747
/**
4848
* The refresh token to be invalidated.
4949
*/

0 commit comments

Comments
 (0)