Skip to content

Commit 2bfa687

Browse files
Auto-generated API code (#2986)
1 parent 6f853ed commit 2bfa687

File tree

5 files changed

+118
-24
lines changed

5 files changed

+118
-24
lines changed

docs/reference/api-reference.md

Lines changed: 28 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ Some of the officially supported clients provide helpers to assist with bulk req
7676
* JavaScript: Check out `client.helpers.*`
7777
* .NET: Check out `BulkAllObservable`
7878
* PHP: Check out bulk indexing.
79+
* Ruby: Check out `Elasticsearch::Helpers::BulkHelper`
7980

8081
**Submitting bulk requests with cURL**
8182

@@ -1340,6 +1341,12 @@ In this case, the response includes a count of the version conflicts that were e
13401341
Note that the handling of other error types is unaffected by the `conflicts` property.
13411342
Additionally, if you opt to count version conflicts, the operation could attempt to reindex more documents from the source than `max_docs` until it has successfully indexed `max_docs` documents into the target or it has gone through every document in the source query.
13421343

1344+
It's recommended to reindex on indices with a green status. Reindexing can fail when a node shuts down or crashes.
1345+
* When requested with `wait_for_completion=true` (default), the request fails if the node shuts down.
1346+
* When requested with `wait_for_completion=false`, a task id is returned, which can be used via the task management API to monitor, debug, or cancel the task. The task may disappear or fail if the node shuts down.
1347+
When retrying a failed reindex operation, it might be necessary to set `conflicts=proceed` or to first delete the partial destination index.
1348+
Additionally, dry runs, checking disk space, and fetching index recovery information can help address the root cause.
1349+
13431350
Refer to the linked documentation for examples of how to reindex documents.
13441351

13451352
[Endpoint documentation](https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-reindex)
@@ -2323,7 +2330,7 @@ client.cat.aliases({ ... })
23232330

23242331
#### Request (object) [_request_cat.aliases]
23252332
- **`name` (Optional, string \| string[])**: A list of aliases to retrieve. Supports wildcards (`*`). To retrieve all aliases, omit this parameter or use `*` or `_all`.
2326-
- **`h` (Optional, string \| string[])**: List of columns to appear in the response. Supports simple wildcards.
2333+
- **`h` (Optional, Enum("alias" \| "index" \| "filter" \| "routing.index" \| "routing.search" \| "is_write_index") \| Enum("alias" \| "index" \| "filter" \| "routing.index" \| "routing.search" \| "is_write_index")[])**: A list of columns names to display. It supports simple wildcards.
23272334
- **`s` (Optional, string \| string[])**: List of columns that determine how the table should be sorted.
23282335
Sorting defaults to ascending and can be changed by setting `:asc`
23292336
or `:desc` as a suffix to the column name.
@@ -2352,7 +2359,7 @@ client.cat.allocation({ ... })
23522359
#### Request (object) [_request_cat.allocation]
23532360
- **`node_id` (Optional, string \| string[])**: A list of node identifiers or names used to limit the returned information.
23542361
- **`bytes` (Optional, Enum("b" \| "kb" \| "mb" \| "gb" \| "tb" \| "pb"))**: The unit used to display byte values.
2355-
- **`h` (Optional, string \| string[])**: List of columns to appear in the response. Supports simple wildcards.
2362+
- **`h` (Optional, Enum("shards" \| "shards.undesired" \| "write_load.forecast" \| "disk.indices.forecast" \| "disk.indices" \| "disk.used" \| "disk.avail" \| "disk.total" \| "disk.percent" \| "host" \| "ip" \| "node" \| "node.role") \| Enum("shards" \| "shards.undesired" \| "write_load.forecast" \| "disk.indices.forecast" \| "disk.indices" \| "disk.used" \| "disk.avail" \| "disk.total" \| "disk.percent" \| "host" \| "ip" \| "node" \| "node.role")[])**: A list of columns names to display. It supports simple wildcards.
23562363
- **`s` (Optional, string \| string[])**: List of columns that determine how the table should be sorted.
23572364
Sorting defaults to ascending and can be changed by setting `:asc`
23582365
or `:desc` as a suffix to the column name.
@@ -2383,7 +2390,7 @@ client.cat.componentTemplates({ ... })
23832390
- **`name` (Optional, string)**: The name of the component template.
23842391
It accepts wildcard expressions.
23852392
If it is omitted, all component templates are returned.
2386-
- **`h` (Optional, string \| string[])**: List of columns to appear in the response. Supports simple wildcards.
2393+
- **`h` (Optional, Enum("name" \| "version" \| "alias_count" \| "mapping_count" \| "settings_count" \| "metadata_count" \| "included_in") \| Enum("name" \| "version" \| "alias_count" \| "mapping_count" \| "settings_count" \| "metadata_count" \| "included_in")[])**: A list of columns names to display. It supports simple wildcards.
23872394
- **`s` (Optional, string \| string[])**: List of columns that determine how the table should be sorted.
23882395
Sorting defaults to ascending and can be changed by setting `:asc`
23892396
or `:desc` as a suffix to the column name.
@@ -2414,7 +2421,7 @@ client.cat.count({ ... })
24142421
- **`index` (Optional, string \| string[])**: A list of data streams, indices, and aliases used to limit the request.
24152422
It supports wildcards (`*`).
24162423
To target all data streams and indices, omit this parameter or use `*` or `_all`.
2417-
- **`h` (Optional, string \| string[])**: List of columns to appear in the response. Supports simple wildcards.
2424+
- **`h` (Optional, Enum("epoch" \| "timestamp" \| "count") \| Enum("epoch" \| "timestamp" \| "count")[])**: A list of columns names to display. It supports simple wildcards.
24182425
- **`s` (Optional, string \| string[])**: List of columns that determine how the table should be sorted.
24192426
Sorting defaults to ascending and can be changed by setting `:asc`
24202427
or `:desc` as a suffix to the column name.
@@ -2439,7 +2446,7 @@ client.cat.fielddata({ ... })
24392446
- **`fields` (Optional, string \| string[])**: List of fields used to limit returned information.
24402447
To retrieve all fields, omit this parameter.
24412448
- **`bytes` (Optional, Enum("b" \| "kb" \| "mb" \| "gb" \| "tb" \| "pb"))**: The unit used to display byte values.
2442-
- **`h` (Optional, string \| string[])**: List of columns to appear in the response. Supports simple wildcards.
2449+
- **`h` (Optional, Enum("id" \| "host" \| "ip" \| "node" \| "field" \| "size") \| Enum("id" \| "host" \| "ip" \| "node" \| "field" \| "size")[])**: A list of columns names to display. It supports simple wildcards.
24432450
- **`s` (Optional, string \| string[])**: List of columns that determine how the table should be sorted.
24442451
Sorting defaults to ascending and can be changed by setting `:asc`
24452452
or `:desc` as a suffix to the column name.
@@ -3484,7 +3491,12 @@ client.cluster.getSettings({ ... })
34843491

34853492
#### Request (object) [_request_cluster.get_settings]
34863493
- **`flat_settings` (Optional, boolean)**: If `true`, returns settings in flat format.
3487-
- **`include_defaults` (Optional, boolean)**: If `true`, returns default cluster settings from the local node.
3494+
- **`include_defaults` (Optional, boolean)**: If `true`, also returns default values for all other cluster settings, reflecting the values
3495+
in the `elasticsearch.yml` file of one of the nodes in the cluster. If the nodes in your
3496+
cluster do not all have the same values in their `elasticsearch.yml` config files then the
3497+
values returned by this API may vary from invocation to invocation and may not reflect the
3498+
values that Elasticsearch uses in all situations. Use the `GET _nodes/settings` API to
3499+
fetch the settings for each individual node in your cluster.
34883500
- **`master_timeout` (Optional, string \| -1 \| 0)**: Period to wait for a connection to the master node.
34893501
If no response is received before the timeout expires, the request fails and returns an error.
34903502
- **`timeout` (Optional, string \| -1 \| 0)**: Period to wait for a response.
@@ -15219,6 +15231,16 @@ client.transform.scheduleNowTransform({ transform_id })
1521915231
- **`transform_id` (string)**: Identifier for the transform.
1522015232
- **`timeout` (Optional, string \| -1 \| 0)**: Controls the time to wait for the scheduling to take place
1522115233

15234+
## client.transform.setUpgradeMode [_transform.set_upgrade_mode]
15235+
Sets a cluster wide upgrade_mode setting that prepares transform indices for an upgrade.
15236+
15237+
[Endpoint documentation](https://www.elastic.co/guide/en/elasticsearch/reference/current/transform-set-upgrade-mode.html)
15238+
15239+
```ts
15240+
client.transform.setUpgradeMode()
15241+
```
15242+
15243+
1522215244
## client.transform.startTransform [_transform.start_transform]
1522315245
Start a transform.
1522415246

0 commit comments

Comments
 (0)