Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 28 additions & 6 deletions docs/reference/api-reference.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
---

Check notice on line 1 in docs/reference/api-reference.md

View workflow job for this annotation

GitHub Actions / docs-preview / build

Irregular whitespace character detected: U+2009 (Thin Space). This may impair Markdown rendering.

Check notice on line 1 in docs/reference/api-reference.md

View workflow job for this annotation

GitHub Actions / docs-preview / build

Irregular whitespace character detected: U+2009 (Thin Space). This may impair Markdown rendering.

Check notice on line 1 in docs/reference/api-reference.md

View workflow job for this annotation

GitHub Actions / docs-preview / build

Irregular whitespace character detected: U+2009 (Thin Space). This may impair Markdown rendering.

Check notice on line 1 in docs/reference/api-reference.md

View workflow job for this annotation

GitHub Actions / docs-preview / build

Irregular whitespace character detected: U+2009 (Thin Space). This may impair Markdown rendering.

Check notice on line 1 in docs/reference/api-reference.md

View workflow job for this annotation

GitHub Actions / docs-preview / build

Irregular whitespace character detected: U+2009 (Thin Space). This may impair Markdown rendering.

Check notice on line 1 in docs/reference/api-reference.md

View workflow job for this annotation

GitHub Actions / docs-preview / build

Irregular whitespace character detected: U+2009 (Thin Space). This may impair Markdown rendering.

Check notice on line 1 in docs/reference/api-reference.md

View workflow job for this annotation

GitHub Actions / docs-preview / build

Irregular whitespace character detected: U+2009 (Thin Space). This may impair Markdown rendering.

Check notice on line 1 in docs/reference/api-reference.md

View workflow job for this annotation

GitHub Actions / docs-preview / build

Irregular whitespace character detected: U+2009 (Thin Space). This may impair Markdown rendering.
mapped_pages:
- https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/api-reference.html
comment: |
Expand Down Expand Up @@ -76,6 +76,7 @@
* JavaScript: Check out `client.helpers.*`
* .NET: Check out `BulkAllObservable`
* PHP: Check out bulk indexing.
* Ruby: Check out `Elasticsearch::Helpers::BulkHelper`

**Submitting bulk requests with cURL**

Expand Down Expand Up @@ -1340,6 +1341,12 @@
Note that the handling of other error types is unaffected by the `conflicts` property.
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.

It's recommended to reindex on indices with a green status. Reindexing can fail when a node shuts down or crashes.
* When requested with `wait_for_completion=true` (default), the request fails if the node shuts down.
* 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.
When retrying a failed reindex operation, it might be necessary to set `conflicts=proceed` or to first delete the partial destination index.
Additionally, dry runs, checking disk space, and fetching index recovery information can help address the root cause.

Refer to the linked documentation for examples of how to reindex documents.

[Endpoint documentation](https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-reindex)
Expand Down Expand Up @@ -2323,7 +2330,7 @@

#### Request (object) [_request_cat.aliases]
- **`name` (Optional, string \| string[])**: A list of aliases to retrieve. Supports wildcards (`*`). To retrieve all aliases, omit this parameter or use `*` or `_all`.
- **`h` (Optional, string \| string[])**: List of columns to appear in the response. Supports simple wildcards.
- **`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.
- **`s` (Optional, string \| string[])**: List of columns that determine how the table should be sorted.
Sorting defaults to ascending and can be changed by setting `:asc`
or `:desc` as a suffix to the column name.
Expand Down Expand Up @@ -2352,7 +2359,7 @@
#### Request (object) [_request_cat.allocation]
- **`node_id` (Optional, string \| string[])**: A list of node identifiers or names used to limit the returned information.
- **`bytes` (Optional, Enum("b" \| "kb" \| "mb" \| "gb" \| "tb" \| "pb"))**: The unit used to display byte values.
- **`h` (Optional, string \| string[])**: List of columns to appear in the response. Supports simple wildcards.
- **`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.
- **`s` (Optional, string \| string[])**: List of columns that determine how the table should be sorted.
Sorting defaults to ascending and can be changed by setting `:asc`
or `:desc` as a suffix to the column name.
Expand Down Expand Up @@ -2383,7 +2390,7 @@
- **`name` (Optional, string)**: The name of the component template.
It accepts wildcard expressions.
If it is omitted, all component templates are returned.
- **`h` (Optional, string \| string[])**: List of columns to appear in the response. Supports simple wildcards.
- **`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.
- **`s` (Optional, string \| string[])**: List of columns that determine how the table should be sorted.
Sorting defaults to ascending and can be changed by setting `:asc`
or `:desc` as a suffix to the column name.
Expand Down Expand Up @@ -2414,7 +2421,7 @@
- **`index` (Optional, string \| string[])**: A list of data streams, indices, and aliases used to limit the request.
It supports wildcards (`*`).
To target all data streams and indices, omit this parameter or use `*` or `_all`.
- **`h` (Optional, string \| string[])**: List of columns to appear in the response. Supports simple wildcards.
- **`h` (Optional, Enum("epoch" \| "timestamp" \| "count") \| Enum("epoch" \| "timestamp" \| "count")[])**: A list of columns names to display. It supports simple wildcards.
- **`s` (Optional, string \| string[])**: List of columns that determine how the table should be sorted.
Sorting defaults to ascending and can be changed by setting `:asc`
or `:desc` as a suffix to the column name.
Expand All @@ -2439,7 +2446,7 @@
- **`fields` (Optional, string \| string[])**: List of fields used to limit returned information.
To retrieve all fields, omit this parameter.
- **`bytes` (Optional, Enum("b" \| "kb" \| "mb" \| "gb" \| "tb" \| "pb"))**: The unit used to display byte values.
- **`h` (Optional, string \| string[])**: List of columns to appear in the response. Supports simple wildcards.
- **`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.
- **`s` (Optional, string \| string[])**: List of columns that determine how the table should be sorted.
Sorting defaults to ascending and can be changed by setting `:asc`
or `:desc` as a suffix to the column name.
Expand Down Expand Up @@ -3484,7 +3491,12 @@

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

## client.transform.setUpgradeMode [_transform.set_upgrade_mode]
Sets a cluster wide upgrade_mode setting that prepares transform indices for an upgrade.

[Endpoint documentation](https://www.elastic.co/guide/en/elasticsearch/reference/current/transform-set-upgrade-mode.html)

```ts
client.transform.setUpgradeMode()
```


## client.transform.startTransform [_transform.start_transform]
Start a transform.

Expand Down
Loading
Loading