You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/reference/api-reference.md
+24-49Lines changed: 24 additions & 49 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1577,54 +1577,6 @@ Internally, Elasticsearch translates a vector tile search API request into a sea
1577
1577
* Optionally, a `geo_bounds` aggregation on the `<field>`. The search only includes this aggregation if the `exact_bounds` parameter is `true`.
1578
1578
* 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.
1579
1579
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
-
1628
1580
The API returns results as a binary Mapbox vector tile.
1629
1581
Mapbox vector tiles are encoded as Google Protobufs (PBF). By default, the tile contains three layers:
1630
1582
@@ -1700,6 +1652,8 @@ Some cells may intersect more than one vector tile.
1700
1652
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.
1701
1653
Elasticsearch uses the H3 resolution that is closest to the corresponding geotile density.
1702
1654
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.
@@ -4701,6 +4655,7 @@ A query ID is provided in the ES|QL async query API response for a query that do
4701
4655
A query ID is also provided when the request was submitted with the `keep_on_completion` parameter set to `true`.
4702
4656
- **`drop_null_columns` (Optional, boolean)**: Indicates whether columns that are entirely `null` will be removed from the `columns` and `values` portion of the results.
4703
4657
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`.
4704
4659
- **`keep_alive` (Optional, string \| -1 \| 0)**: The period for which the query and its results are stored in the cluster.
4705
4660
When this period expires, the query and its results are deleted, even if the query is still ongoing.
4706
4661
- **`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.
6704
6659
not used at all by Elasticsearch, but can be used to store
6705
6660
application-specific metadata.
6706
6661
- **`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:
6708
6663
6709
6664
- Field name
6710
6665
- Field data type
@@ -6972,6 +6927,16 @@ client.indices.reloadSearchAnalyzers({ index })
6972
6927
- **`ignore_unavailable` (Optional, boolean)**: Whether specified concrete indices should be ignored when unavailable (missing or closed)
6973
6928
- **`resource` (Optional, string)**: Changed resource to reload analyzers from if applicable
@@ -12662,6 +12627,7 @@ You can optionally filter the results with a query.
12662
12627
To use this API, you must have at least the `manage_own_api_key` or the `read_security` cluster privileges.
12663
12628
If you have only the `manage_own_api_key` privilege, this API returns only the API keys that you own.
12664
12629
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:
@@ -13042,6 +13008,8 @@ The owner user's information, such as the `username` and `realm`, is also update
13042
13008
13043
13009
NOTE: This API cannot update REST API keys, which should be updated by either the update API key or bulk update API keys API.
13044
13010
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).
@@ -14007,6 +13975,12 @@ If you omit the `<snapshot>` request path parameter, the request retrieves infor
14007
13975
This usage is preferred.
14008
13976
If needed, you can specify `<repository>` and `<snapshot>` to retrieve information for specific snapshots, even if they're not currently running.
14009
13977
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
+
14010
13984
WARNING: Using the API to return the status of any snapshots other than currently running snapshots can be expensive.
14011
13985
The API requires a read from the repository for each shard in each snapshot.
14012
13986
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
15310
15284
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.
15311
15285
15312
15286
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.
0 commit comments