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, for use with the task management APIs. 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
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -3715,7 +3715,7 @@ async def put_mapping(
3715
3715
<li>Change a field's mapping using reindexing</li>
3716
3716
<li>Rename a field using a field alias</li>
3717
3717
</ul>
3718
-
<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>
3718
+
<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>
TIP: It is recommended to use the index lifecycle rollover action to automate rollovers.</p>
4590
+
TIP: We recommend using the index lifecycle rollover action to automate rollovers. However, Serverless does not support Index Lifecycle Management (ILM), so don't use this approach in the Serverless context.</p>
4591
4591
<p>The rollover API creates a new index for a data stream or index alias.
4592
4592
The API behavior depends on the rollover target.</p>
0 commit comments