Skip to content

Commit c5b2915

Browse files
Auto-generated API code (#2618)
1 parent 20fb610 commit c5b2915

File tree

3 files changed

+35
-20
lines changed

3 files changed

+35
-20
lines changed

docs/reference.asciidoc

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1730,7 +1730,7 @@ client.search({ ... })
17301730
** *`rescore` (Optional, { window_size, query, learning_to_rank } | { window_size, query, learning_to_rank }[])*: Can be used to improve precision by reordering just the top (for example 100 - 500) documents returned by the `query` and `post_filter` phases.
17311731
** *`retriever` (Optional, { standard, knn, rrf, text_similarity_reranker, rule })*: A retriever is a specification to describe top documents returned from a search. A retriever replaces other elements of the search API that also return top documents such as `query` and `knn`.
17321732
** *`script_fields` (Optional, Record<string, { script, ignore_failure }>)*: Retrieve a script evaluation (based on different fields) for each hit.
1733-
** *`search_after` (Optional, number | number | string | boolean | null | User-defined value[])*: Used to retrieve the next page of hits using a set of sort values from the previous page.
1733+
** *`search_after` (Optional, number | number | string | boolean | null[])*: Used to retrieve the next page of hits using a set of sort values from the previous page.
17341734
** *`size` (Optional, number)*: The number of hits to return, which must not be negative. By default, you cannot page through more than 10,000 hits using the `from` and `size` parameters. To page through more hits, use the `search_after` property.
17351735
** *`slice` (Optional, { field, id, max })*: Split a scrolled search into multiple slices that can be consumed independently.
17361736
** *`sort` (Optional, string | { _score, _doc, _geo_distance, _script } | string | { _score, _doc, _geo_distance, _script }[])*: A list of <field>:<direction> pairs.
@@ -2424,7 +2424,7 @@ not included in the search results.
24242424
** *`query` (Optional, { bool, boosting, common, combined_fields, constant_score, dis_max, distance_feature, exists, function_score, fuzzy, geo_bounding_box, geo_distance, geo_polygon, geo_shape, has_child, has_parent, ids, intervals, knn, match, match_all, match_bool_prefix, match_none, match_phrase, match_phrase_prefix, more_like_this, multi_match, nested, parent_id, percolate, pinned, prefix, query_string, range, rank_feature, regexp, rule, script, script_score, semantic, shape, simple_query_string, span_containing, span_field_masking, span_first, span_multi, span_near, span_not, span_or, span_term, span_within, sparse_vector, term, terms, terms_set, text_expansion, weighted_tokens, wildcard, wrapper, type })*: Defines the search definition using the Query DSL.
24252425
** *`rescore` (Optional, { window_size, query, learning_to_rank } | { window_size, query, learning_to_rank }[])*
24262426
** *`script_fields` (Optional, Record<string, { script, ignore_failure }>)*: Retrieve a script evaluation (based on different fields) for each hit.
2427-
** *`search_after` (Optional, number | number | string | boolean | null | User-defined value[])*
2427+
** *`search_after` (Optional, number | number | string | boolean | null[])*
24282428
** *`size` (Optional, number)*: The number of hits to return. By default, you cannot page through more
24292429
than 10,000 hits using the from and size parameters. To page through more
24302430
hits, use the search_after parameter.
@@ -4990,13 +4990,16 @@ client.esql.asyncQuery({ query })
49904990
** *`columnar` (Optional, boolean)*: By default, ES|QL returns results as rows. For example, FROM returns each individual document as one row. For the JSON, YAML, CBOR and smile formats, ES|QL can return the results in a columnar fashion where one row represents all the values of a certain column in the results.
49914991
** *`filter` (Optional, { bool, boosting, common, combined_fields, constant_score, dis_max, distance_feature, exists, function_score, fuzzy, geo_bounding_box, geo_distance, geo_polygon, geo_shape, has_child, has_parent, ids, intervals, knn, match, match_all, match_bool_prefix, match_none, match_phrase, match_phrase_prefix, more_like_this, multi_match, nested, parent_id, percolate, pinned, prefix, query_string, range, rank_feature, regexp, rule, script, script_score, semantic, shape, simple_query_string, span_containing, span_field_masking, span_first, span_multi, span_near, span_not, span_or, span_term, span_within, sparse_vector, term, terms, terms_set, text_expansion, weighted_tokens, wildcard, wrapper, type })*: Specify a Query DSL query in the filter parameter to filter the set of documents that an ES|QL query runs on.
49924992
** *`locale` (Optional, string)*
4993-
** *`params` (Optional, number | number | string | boolean | null | User-defined value[])*: To avoid any attempts of hacking or code injection, extract the values in a separate list of parameters. Use question mark placeholders (?) in the query string for each of the parameters.
4993+
** *`params` (Optional, number | number | string | boolean | null[])*: To avoid any attempts of hacking or code injection, extract the values in a separate list of parameters. Use question mark placeholders (?) in the query string for each of the parameters.
49944994
** *`profile` (Optional, boolean)*: If provided and `true` the response will include an extra `profile` object
49954995
with information on how the query was executed. This information is for human debugging
49964996
and its format can change at any time but it can give some insight into the performance
49974997
of each part of the query.
49984998
** *`tables` (Optional, Record<string, Record<string, { integer, keyword, long, double }>>)*: Tables to use with the LOOKUP operation. The top level key is the table
49994999
name and the next level key is the column name.
5000+
** *`include_ccs_metadata` (Optional, boolean)*: When set to `true` and performing a cross-cluster query, the response will include an extra `_clusters`
5001+
object with information about the clusters that participated in the search along with info such as shards
5002+
count.
50005003
** *`delimiter` (Optional, string)*: The character to use between values within a CSV row.
50015004
It is valid only for the CSV format.
50025005
** *`drop_null_columns` (Optional, boolean)*: Indicates whether columns that are entirely `null` will be removed from the `columns` and `values` portion of the results.
@@ -5108,13 +5111,16 @@ client.esql.query({ query })
51085111
** *`columnar` (Optional, boolean)*: By default, ES|QL returns results as rows. For example, FROM returns each individual document as one row. For the JSON, YAML, CBOR and smile formats, ES|QL can return the results in a columnar fashion where one row represents all the values of a certain column in the results.
51095112
** *`filter` (Optional, { bool, boosting, common, combined_fields, constant_score, dis_max, distance_feature, exists, function_score, fuzzy, geo_bounding_box, geo_distance, geo_polygon, geo_shape, has_child, has_parent, ids, intervals, knn, match, match_all, match_bool_prefix, match_none, match_phrase, match_phrase_prefix, more_like_this, multi_match, nested, parent_id, percolate, pinned, prefix, query_string, range, rank_feature, regexp, rule, script, script_score, semantic, shape, simple_query_string, span_containing, span_field_masking, span_first, span_multi, span_near, span_not, span_or, span_term, span_within, sparse_vector, term, terms, terms_set, text_expansion, weighted_tokens, wildcard, wrapper, type })*: Specify a Query DSL query in the filter parameter to filter the set of documents that an ES|QL query runs on.
51105113
** *`locale` (Optional, string)*
5111-
** *`params` (Optional, number | number | string | boolean | null | User-defined value[])*: To avoid any attempts of hacking or code injection, extract the values in a separate list of parameters. Use question mark placeholders (?) in the query string for each of the parameters.
5114+
** *`params` (Optional, number | number | string | boolean | null[])*: To avoid any attempts of hacking or code injection, extract the values in a separate list of parameters. Use question mark placeholders (?) in the query string for each of the parameters.
51125115
** *`profile` (Optional, boolean)*: If provided and `true` the response will include an extra `profile` object
51135116
with information on how the query was executed. This information is for human debugging
51145117
and its format can change at any time but it can give some insight into the performance
51155118
of each part of the query.
51165119
** *`tables` (Optional, Record<string, Record<string, { integer, keyword, long, double }>>)*: Tables to use with the LOOKUP operation. The top level key is the table
51175120
name and the next level key is the column name.
5121+
** *`include_ccs_metadata` (Optional, boolean)*: When set to `true` and performing a cross-cluster query, the response will include an extra `_clusters`
5122+
object with information about the clusters that participated in the search along with info such as shards
5123+
count.
51185124
** *`format` (Optional, Enum("csv" | "json" | "tsv" | "txt" | "yaml" | "cbor" | "smile" | "arrow"))*: A short version of the Accept header, e.g. json, yaml.
51195125
** *`delimiter` (Optional, string)*: The character to use between values within a CSV row. Only valid for the CSV format.
51205126
** *`drop_null_columns` (Optional, boolean)*: Should columns that are entirely `null` be removed from the `columns` and `values` portion of the results?
@@ -5284,7 +5290,7 @@ not included in the search results.
52845290
** *`query` (Optional, { bool, boosting, common, combined_fields, constant_score, dis_max, distance_feature, exists, function_score, fuzzy, geo_bounding_box, geo_distance, geo_polygon, geo_shape, has_child, has_parent, ids, intervals, knn, match, match_all, match_bool_prefix, match_none, match_phrase, match_phrase_prefix, more_like_this, multi_match, nested, parent_id, percolate, pinned, prefix, query_string, range, rank_feature, regexp, rule, script, script_score, semantic, shape, simple_query_string, span_containing, span_field_masking, span_first, span_multi, span_near, span_not, span_or, span_term, span_within, sparse_vector, term, terms, terms_set, text_expansion, weighted_tokens, wildcard, wrapper, type })*: Defines the search definition using the Query DSL.
52855291
** *`rescore` (Optional, { window_size, query, learning_to_rank } | { window_size, query, learning_to_rank }[])*
52865292
** *`script_fields` (Optional, Record<string, { script, ignore_failure }>)*: Retrieve a script evaluation (based on different fields) for each hit.
5287-
** *`search_after` (Optional, number | number | string | boolean | null | User-defined value[])*
5293+
** *`search_after` (Optional, number | number | string | boolean | null[])*
52885294
** *`size` (Optional, number)*: The number of hits to return. By default, you cannot page through more
52895295
than 10,000 hits using the from and size parameters. To page through more
52905296
hits, use the search_after parameter.
@@ -12932,7 +12938,7 @@ It must not be negative.
1293212938
The `size` parameter can be set to `0`, in which case no API key matches are returned, only the aggregation results.
1293312939
By default, you cannot page through more than 10,000 hits using the `from` and `size` parameters.
1293412940
To page through more hits, use the `search_after` parameter.
12935-
** *`search_after` (Optional, number | number | string | boolean | null | User-defined value[])*: The search after definition.
12941+
** *`search_after` (Optional, number | number | string | boolean | null[])*: The search after definition.
1293612942
** *`with_limited_by` (Optional, boolean)*: Return the snapshot of the owner user's role descriptors associated with the API key.
1293712943
An API key's actual permission is the intersection of its assigned role descriptors and the owner user's role descriptors (effectively limited by it).
1293812944
An API key cannot retrieve any API key’s limited-by role descriptors (including itself) unless it has `manage_api_key` or higher privileges.
@@ -12977,7 +12983,7 @@ In addition, sort can also be applied to the `_doc` field to sort by index order
1297712983
It must not be negative.
1297812984
By default, you cannot page through more than 10,000 hits using the `from` and `size` parameters.
1297912985
To page through more hits, use the `search_after` parameter.
12980-
** *`search_after` (Optional, number | number | string | boolean | null | User-defined value[])*: The search after definition.
12986+
** *`search_after` (Optional, number | number | string | boolean | null[])*: The search after definition.
1298112987

1298212988
[discrete]
1298312989
==== query_user
@@ -13015,7 +13021,7 @@ In addition, sort can also be applied to the `_doc` field to sort by index order
1301513021
It must not be negative.
1301613022
By default, you cannot page through more than 10,000 hits using the `from` and `size` parameters.
1301713023
To page through more hits, use the `search_after` parameter.
13018-
** *`search_after` (Optional, number | number | string | boolean | null | User-defined value[])*: The search after definition
13024+
** *`search_after` (Optional, number | number | string | boolean | null[])*: The search after definition
1301913025
** *`with_profile_uid` (Optional, boolean)*: Determines whether to retrieve the user profile UID, if it exists, for the users.
1302013026

1302113027
[discrete]
@@ -15757,7 +15763,7 @@ It must be non-negative.
1575715763
It must be non-negative.
1575815764
** *`query` (Optional, { bool, boosting, common, combined_fields, constant_score, dis_max, distance_feature, exists, function_score, fuzzy, geo_bounding_box, geo_distance, geo_polygon, geo_shape, has_child, has_parent, ids, intervals, knn, match, match_all, match_bool_prefix, match_none, match_phrase, match_phrase_prefix, more_like_this, multi_match, nested, parent_id, percolate, pinned, prefix, query_string, range, rank_feature, regexp, rule, script, script_score, semantic, shape, simple_query_string, span_containing, span_field_masking, span_first, span_multi, span_near, span_not, span_or, span_term, span_within, sparse_vector, term, terms, terms_set, text_expansion, weighted_tokens, wildcard, wrapper, type })*: A query that filters the watches to be returned.
1575915765
** *`sort` (Optional, string | { _score, _doc, _geo_distance, _script } | string | { _score, _doc, _geo_distance, _script }[])*: One or more fields used to sort the search results.
15760-
** *`search_after` (Optional, number | number | string | boolean | null | User-defined value[])*: Retrieve the next page of hits using a set of sort values from the previous page.
15766+
** *`search_after` (Optional, number | number | string | boolean | null[])*: Retrieve the next page of hits using a set of sort values from the previous page.
1576115767

1576215768
[discrete]
1576315769
==== start

src/api/api/esql.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export default class Esql {
5252
async asyncQuery (this: That, params: T.EsqlAsyncQueryRequest, options?: TransportRequestOptions): Promise<T.EsqlAsyncQueryResponse>
5353
async asyncQuery (this: That, params: T.EsqlAsyncQueryRequest, options?: TransportRequestOptions): Promise<any> {
5454
const acceptedPath: string[] = []
55-
const acceptedBody: string[] = ['columnar', 'filter', 'locale', 'params', 'profile', 'query', 'tables']
55+
const acceptedBody: string[] = ['columnar', 'filter', 'locale', 'params', 'profile', 'query', 'tables', 'include_ccs_metadata']
5656
const userQuery = params?.querystring
5757
const querystring: Record<string, any> = userQuery != null ? { ...userQuery } : {}
5858

@@ -222,7 +222,7 @@ export default class Esql {
222222
async query (this: That, params: T.EsqlQueryRequest, options?: TransportRequestOptions): Promise<T.EsqlQueryResponse>
223223
async query (this: That, params: T.EsqlQueryRequest, options?: TransportRequestOptions): Promise<any> {
224224
const acceptedPath: string[] = []
225-
const acceptedBody: string[] = ['columnar', 'filter', 'locale', 'params', 'profile', 'query', 'tables']
225+
const acceptedBody: string[] = ['columnar', 'filter', 'locale', 'params', 'profile', 'query', 'tables', 'include_ccs_metadata']
226226
const userQuery = params?.querystring
227227
const querystring: Record<string, any> = userQuery != null ? { ...userQuery } : {}
228228

0 commit comments

Comments
 (0)