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
+28-6Lines changed: 28 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -76,6 +76,7 @@ Some of the officially supported clients provide helpers to assist with bulk req
76
76
* JavaScript: Check out `client.helpers.*`
77
77
* .NET: Check out `BulkAllObservable`
78
78
* PHP: Check out bulk indexing.
79
+
* Ruby: Check out `Elasticsearch::Helpers::BulkHelper`
79
80
80
81
**Submitting bulk requests with cURL**
81
82
@@ -1340,6 +1341,12 @@ In this case, the response includes a count of the version conflicts that were e
1340
1341
Note that the handling of other error types is unaffected by the `conflicts` property.
1341
1342
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.
1342
1343
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
+
1343
1350
Refer to the linked documentation for examples of how to reindex documents.
- **`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.
2327
2334
- **`s` (Optional, string \| string[])**: List of columns that determine how the table should be sorted.
2328
2335
Sorting defaults to ascending and can be changed by setting `:asc`
- **`name` (Optional, string)**: The name of the component template.
2384
2391
It accepts wildcard expressions.
2385
2392
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.
2387
2394
- **`s` (Optional, string \| string[])**: List of columns that determine how the table should be sorted.
2388
2395
Sorting defaults to ascending and can be changed by setting `:asc`
2389
2396
or `:desc` as a suffix to the column name.
@@ -2414,7 +2421,7 @@ client.cat.count({ ... })
2414
2421
- **`index` (Optional, string \| string[])**: A list of data streams, indices, and aliases used to limit the request.
2415
2422
It supports wildcards (`*`).
2416
2423
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.
2418
2425
- **`s` (Optional, string \| string[])**: List of columns that determine how the table should be sorted.
2419
2426
Sorting defaults to ascending and can be changed by setting `:asc`
0 commit comments