Skip to content

Commit 384898a

Browse files
Auto-generated API code (#2885)
1 parent d6a4aeb commit 384898a

File tree

10 files changed

+299
-68
lines changed

10 files changed

+299
-68
lines changed

docs/reference/api-reference.md

Lines changed: 24 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1577,54 +1577,6 @@ Internally, Elasticsearch translates a vector tile search API request into a sea
15771577
* Optionally, a `geo_bounds` aggregation on the `<field>`. The search only includes this aggregation if the `exact_bounds` parameter is `true`.
15781578
* If the optional parameter `with_labels` is `true`, the internal search will include a dynamic runtime field that calls the `getLabelPosition` function of the geometry doc value. This enables the generation of new point features containing suggested geometry labels, so that, for example, multi-polygons will have only one label.
15791579

1580-
For example, Elasticsearch may translate a vector tile search API request with a `grid_agg` argument of `geotile` and an `exact_bounds` argument of `true` into the following search
1581-
1582-
```
1583-
GET my-index/_search
1584-
{
1585-
"size": 10000,
1586-
"query": {
1587-
"geo_bounding_box": {
1588-
"my-geo-field": {
1589-
"top_left": {
1590-
"lat": -40.979898069620134,
1591-
"lon": -45
1592-
},
1593-
"bottom_right": {
1594-
"lat": -66.51326044311186,
1595-
"lon": 0
1596-
}
1597-
}
1598-
}
1599-
},
1600-
"aggregations": {
1601-
"grid": {
1602-
"geotile_grid": {
1603-
"field": "my-geo-field",
1604-
"precision": 11,
1605-
"size": 65536,
1606-
"bounds": {
1607-
"top_left": {
1608-
"lat": -40.979898069620134,
1609-
"lon": -45
1610-
},
1611-
"bottom_right": {
1612-
"lat": -66.51326044311186,
1613-
"lon": 0
1614-
}
1615-
}
1616-
}
1617-
},
1618-
"bounds": {
1619-
"geo_bounds": {
1620-
"field": "my-geo-field",
1621-
"wrap_longitude": false
1622-
}
1623-
}
1624-
}
1625-
}
1626-
```
1627-
16281580
The API returns results as a binary Mapbox vector tile.
16291581
Mapbox vector tiles are encoded as Google Protobufs (PBF). By default, the tile contains three layers:
16301582

@@ -1700,6 +1652,8 @@ Some cells may intersect more than one vector tile.
17001652
To compute the H3 resolution for each precision, Elasticsearch compares the average density of hexagonal bins at each resolution with the average density of tile bins at each zoom level.
17011653
Elasticsearch uses the H3 resolution that is closest to the corresponding geotile density.
17021654

1655+
Learn how to use the vector tile search API with practical examples in the [Vector tile search examples](https://www.elastic.co/docs/reference/elasticsearch/rest-apis/vector-tile-search) guide.
1656+
17031657
[Endpoint documentation](https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-search-mvt)
17041658

17051659
```ts
@@ -4701,6 +4655,7 @@ A query ID is provided in the ES|QL async query API response for a query that do
47014655
A query ID is also provided when the request was submitted with the `keep_on_completion` parameter set to `true`.
47024656
- **`drop_null_columns` (Optional, boolean)**: Indicates whether columns that are entirely `null` will be removed from the `columns` and `values` portion of the results.
47034657
If `true`, the response will include an extra section under the name `all_columns` which has the name of all the columns.
4658+
- **`format` (Optional, Enum("csv" \| "json" \| "tsv" \| "txt" \| "yaml" \| "cbor" \| "smile" \| "arrow"))**: A short version of the Accept header, for example `json` or `yaml`.
47044659
- **`keep_alive` (Optional, string \| -1 \| 0)**: The period for which the query and its results are stored in the cluster.
47054660
When this period expires, the query and its results are deleted, even if the query is still ongoing.
47064661
- **`wait_for_completion_timeout` (Optional, string \| -1 \| 0)**: The period to wait for the request to finish.
@@ -6704,7 +6659,7 @@ a new date field is added instead of string.
67046659
not used at all by Elasticsearch, but can be used to store
67056660
application-specific metadata.
67066661
- **`numeric_detection` (Optional, boolean)**: Automatically map strings into numeric data types for all fields.
6707-
- **`properties` (Optional, Record<string, { type } \| { boost, fielddata, index, null_value, ignore_malformed, script, on_script_error, time_series_dimension, type } \| { type, enabled, null_value, boost, coerce, script, on_script_error, ignore_malformed, time_series_metric, analyzer, eager_global_ordinals, index, index_options, index_phrases, index_prefixes, norms, position_increment_gap, search_analyzer, search_quote_analyzer, term_vector, format, precision_step, locale } \| { relations, eager_global_ordinals, type } \| { boost, eager_global_ordinals, index, index_options, script, on_script_error, normalizer, norms, null_value, similarity, split_queries_on_whitespace, time_series_dimension, type } \| { type, fields, meta, copy_to } \| { type } \| { positive_score_impact, type } \| { positive_score_impact, type } \| { analyzer, index, index_options, max_shingle_size, norms, search_analyzer, search_quote_analyzer, similarity, term_vector, type } \| { analyzer, boost, eager_global_ordinals, fielddata, fielddata_frequency_filter, index, index_options, index_phrases, index_prefixes, norms, position_increment_gap, search_analyzer, search_quote_analyzer, similarity, term_vector, type } \| { type } \| { type, null_value } \| { boost, format, ignore_malformed, index, script, on_script_error, null_value, precision_step, type } \| { boost, fielddata, format, ignore_malformed, index, script, on_script_error, null_value, precision_step, locale, type } \| { type, default_metric, metrics, time_series_metric } \| { type, dims, element_type, index, index_options, similarity } \| { boost, depth_limit, doc_values, eager_global_ordinals, index, index_options, null_value, similarity, split_queries_on_whitespace, type } \| { enabled, include_in_parent, include_in_root, type } \| { enabled, subobjects, type } \| { type, enabled, priority, time_series_dimension } \| { type, meta, inference_id, search_inference_id, chunking_settings } \| { type } \| { analyzer, contexts, max_input_length, preserve_position_increments, preserve_separators, search_analyzer, type } \| { value, type } \| { type, index } \| { path, type } \| { ignore_malformed, type } \| { boost, index, ignore_malformed, null_value, on_script_error, script, time_series_dimension, type } \| { type } \| { analyzer, boost, index, null_value, enable_position_increments, type } \| { ignore_malformed, ignore_z_value, null_value, index, on_script_error, script, type } \| { coerce, ignore_malformed, ignore_z_value, index, orientation, strategy, type } \| { ignore_malformed, ignore_z_value, null_value, type } \| { coerce, ignore_malformed, ignore_z_value, orientation, type } \| { type, null_value } \| { type, null_value } \| { type, null_value } \| { type, null_value } \| { type, null_value } \| { type, null_value } \| { type, null_value, scaling_factor } \| { type, null_value } \| { type, null_value } \| { format, type } \| { type } \| { type } \| { type } \| { type } \| { type } \| { type, norms, index_options, index, null_value, rules, language, country, variant, strength, decomposition, alternate, case_level, case_first, numeric, variable_top, hiragana_quaternary_mode }>)**: Mapping for a field. For new fields, this mapping can include:
6662+
- **`properties` (Optional, Record<string, { type } \| { boost, fielddata, index, null_value, ignore_malformed, script, on_script_error, time_series_dimension, type } \| { type, enabled, null_value, boost, coerce, script, on_script_error, ignore_malformed, time_series_metric, analyzer, eager_global_ordinals, index, index_options, index_phrases, index_prefixes, norms, position_increment_gap, search_analyzer, search_quote_analyzer, term_vector, format, precision_step, locale } \| { relations, eager_global_ordinals, type } \| { boost, eager_global_ordinals, index, index_options, script, on_script_error, normalizer, norms, null_value, similarity, split_queries_on_whitespace, time_series_dimension, type } \| { type, fields, meta, copy_to } \| { type } \| { positive_score_impact, type } \| { positive_score_impact, type } \| { analyzer, index, index_options, max_shingle_size, norms, search_analyzer, search_quote_analyzer, similarity, term_vector, type } \| { analyzer, boost, eager_global_ordinals, fielddata, fielddata_frequency_filter, index, index_options, index_phrases, index_prefixes, norms, position_increment_gap, search_analyzer, search_quote_analyzer, similarity, term_vector, type } \| { type } \| { type, null_value } \| { boost, format, ignore_malformed, index, script, on_script_error, null_value, precision_step, type } \| { boost, fielddata, format, ignore_malformed, index, script, on_script_error, null_value, precision_step, locale, type } \| { type, default_metric, metrics, time_series_metric } \| { type, dims, element_type, index, index_options, similarity } \| { boost, depth_limit, doc_values, eager_global_ordinals, index, index_options, null_value, similarity, split_queries_on_whitespace, type } \| { enabled, include_in_parent, include_in_root, type } \| { enabled, subobjects, type } \| { type, enabled, priority, time_series_dimension } \| { type, meta, inference_id, search_inference_id, index_options, chunking_settings } \| { type } \| { analyzer, contexts, max_input_length, preserve_position_increments, preserve_separators, search_analyzer, type } \| { value, type } \| { type, index } \| { path, type } \| { ignore_malformed, type } \| { boost, index, ignore_malformed, null_value, on_script_error, script, time_series_dimension, type } \| { type } \| { analyzer, boost, index, null_value, enable_position_increments, type } \| { ignore_malformed, ignore_z_value, null_value, index, on_script_error, script, type } \| { coerce, ignore_malformed, ignore_z_value, index, orientation, strategy, type } \| { ignore_malformed, ignore_z_value, null_value, type } \| { coerce, ignore_malformed, ignore_z_value, orientation, type } \| { type, null_value } \| { type, null_value } \| { type, null_value } \| { type, null_value } \| { type, null_value } \| { type, null_value } \| { type, null_value, scaling_factor } \| { type, null_value } \| { type, null_value } \| { format, type } \| { type } \| { type } \| { type } \| { type } \| { type } \| { type, norms, index_options, index, null_value, rules, language, country, variant, strength, decomposition, alternate, case_level, case_first, numeric, variable_top, hiragana_quaternary_mode }>)**: Mapping for a field. For new fields, this mapping can include:
67086663

67096664
- Field name
67106665
- Field data type
@@ -6972,6 +6927,16 @@ client.indices.reloadSearchAnalyzers({ index })
69726927
- **`ignore_unavailable` (Optional, boolean)**: Whether specified concrete indices should be ignored when unavailable (missing or closed)
69736928
- **`resource` (Optional, string)**: Changed resource to reload analyzers from if applicable
69746929

6930+
## client.indices.removeBlock [_indices.remove_block]
6931+
Removes a block from an index.
6932+
6933+
[Endpoint documentation](https://www.elastic.co/guide/en/elasticsearch/reference/master/index-modules-blocks.html)
6934+
6935+
```ts
6936+
client.indices.removeBlock()
6937+
```
6938+
6939+
69756940
## client.indices.resolveCluster [_indices.resolve_cluster]
69766941
Resolve the cluster.
69776942

@@ -12662,6 +12627,7 @@ You can optionally filter the results with a query.
1266212627
To use this API, you must have at least the `manage_own_api_key` or the `read_security` cluster privileges.
1266312628
If you have only the `manage_own_api_key` privilege, this API returns only the API keys that you own.
1266412629
If you have the `read_security`, `manage_api_key`, or greater privileges (including `manage_security`), this API returns all API keys regardless of ownership.
12630+
Refer to the linked documentation for examples of how to find API keys:
1266512631

1266612632
[Endpoint documentation](https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-query-api-keys)
1266712633

@@ -13042,6 +13008,8 @@ The owner user's information, such as the `username` and `realm`, is also update
1304213008

1304313009
NOTE: This API cannot update REST API keys, which should be updated by either the update API key or bulk update API keys API.
1304413010

13011+
To learn more about how to use this API, refer to the [Update cross cluter API key API examples page](https://www.elastic.co/docs/reference/elasticsearch/rest-apis/update-cc-api-key-examples).
13012+
1304513013
[Endpoint documentation](https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-update-cross-cluster-api-key)
1304613014

1304713015
```ts
@@ -14007,6 +13975,12 @@ If you omit the `<snapshot>` request path parameter, the request retrieves infor
1400713975
This usage is preferred.
1400813976
If needed, you can specify `<repository>` and `<snapshot>` to retrieve information for specific snapshots, even if they're not currently running.
1400913977

13978+
Note that the stats will not be available for any shard snapshots in an ongoing snapshot completed by a node that (even momentarily) left the cluster.
13979+
Loading the stats from the repository is an expensive operation (see the WARNING below).
13980+
Therefore the stats values for such shards will be -1 even though the "stage" value will be "DONE", in order to minimize latency.
13981+
A "description" field will be present for a shard snapshot completed by a departed node explaining why the shard snapshot's stats results are invalid.
13982+
Consequently, the total stats for the index will be less than expected due to the missing values from these shards.
13983+
1401013984
WARNING: Using the API to return the status of any snapshots other than currently running snapshots can be expensive.
1401113985
The API requires a read from the repository for each shard in each snapshot.
1401213986
For example, if you have 100 snapshots with 1,000 shards each, an API request that includes all snapshots will require 100,000 reads (100 snapshots x 1,000 shards).
@@ -15310,6 +15284,7 @@ When Elasticsearch security features are enabled on your cluster, watches are ru
1531015284
If your user is allowed to read index `a`, but not index `b`, then the exact same set of rules will apply during execution of a watch.
1531115285

1531215286
When using the run watch API, the authorization data of the user that called the API will be used as a base, instead of the information who stored the watch.
15287+
Refer to the external documentation for examples of watch execution requests, including existing, customized, and inline watches.
1531315288

1531415289
[Endpoint documentation](https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-watcher-execute-watch)
1531515290

src/api/api/esql.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ export default class Esql {
7171
body: [],
7272
query: [
7373
'drop_null_columns',
74+
'format',
7475
'keep_alive',
7576
'wait_for_completion_timeout'
7677
]

0 commit comments

Comments
 (0)