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
In this case, the response includes a count of the version conflicts that were encountered.
3871
3877
Note that the handling of other error types is unaffected by the <code>conflicts</code> property.
3872
3878
Additionally, if you opt to count version conflicts, the operation could attempt to reindex more documents from the source than <code>max_docs</code> until it has successfully indexed <code>max_docs</code> documents into the target or it has gone through every document in the source query.</p>
3879
+
<p>It's recommended to reindex on indices with a green status. Reindexing can fail when a node shuts down or crashes.</p>
3880
+
<ul>
3881
+
<li>When requested with <code>wait_for_completion=true</code> (default), the request fails if the node shuts down.</li>
3882
+
<li>When requested with <code>wait_for_completion=false</code>, 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.
3883
+
When retrying a failed reindex operation, it might be necessary to set <code>conflicts=proceed</code> or to first delete the partial destination index.
3884
+
Additionally, dry runs, checking disk space, and fetching index recovery information can help address the root cause.</li>
3885
+
</ul>
3873
3886
<p>Refer to the linked documentation for examples of how to reindex documents.</p>
Copy file name to clipboardExpand all lines: elasticsearch/_async/client/indices.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -4051,7 +4051,7 @@ async def put_mapping(
4051
4051
<li>Change a field's mapping using reindexing</li>
4052
4052
<li>Rename a field using a field alias</li>
4053
4053
</ul>
4054
-
<p>Learn how to use the update mapping API with practical examples in the <a href="https://www.elastic.co/docs//manage-data/data-store/mapping/update-mappings-examples">Update mapping API examples</a> guide.</p>
4054
+
<p>Learn how to use the update mapping API with practical examples in the <a href="https://www.elastic.co/docs/manage-data/data-store/mapping/update-mappings-examples">Update mapping API examples</a> guide.</p>
0 commit comments