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: elasticsearch/_async/client/__init__.py
+9-1Lines changed: 9 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -608,6 +608,7 @@ async def bulk(
608
608
<li>JavaScript: Check out <code>client.helpers.*</code></li>
609
609
<li>.NET: Check out <code>BulkAllObservable</code></li>
610
610
<li>PHP: Check out bulk indexing.</li>
611
+
<li>Ruby: Check out <code>Elasticsearch::Helpers::BulkHelper</code></li>
611
612
</ul>
612
613
<p><strong>Submitting bulk requests with cURL</strong></p>
613
614
<p>If you're providing text file input to <code>curl</code>, you must use the <code>--data-binary</code> flag instead of plain <code>-d</code>.
@@ -3870,6 +3871,13 @@ async def reindex(
3870
3871
In this case, the response includes a count of the version conflicts that were encountered.
3871
3872
Note that the handling of other error types is unaffected by the <code>conflicts</code> property.
3872
3873
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>
3874
+
<p>It's recommended to reindex on indices with a green status. Reindexing can fail when a node shuts down or crashes.</p>
3875
+
<ul>
3876
+
<li>When requested with <code>wait_for_completion=true</code> (default), the request fails if the node shuts down.</li>
3877
+
<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.
3878
+
When retrying a failed reindex operation, it might be necessary to set <code>conflicts=proceed</code> or to first delete the partial destination index.
3879
+
Additionally, dry runs, checking disk space, and fetching index recovery information can help address the root cause.</li>
3880
+
</ul>
3873
3881
<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
@@ -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>
Copy file name to clipboardExpand all lines: elasticsearch/_sync/client/__init__.py
+9-1Lines changed: 9 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -606,6 +606,7 @@ def bulk(
606
606
<li>JavaScript: Check out <code>client.helpers.*</code></li>
607
607
<li>.NET: Check out <code>BulkAllObservable</code></li>
608
608
<li>PHP: Check out bulk indexing.</li>
609
+
<li>Ruby: Check out <code>Elasticsearch::Helpers::BulkHelper</code></li>
609
610
</ul>
610
611
<p><strong>Submitting bulk requests with cURL</strong></p>
611
612
<p>If you're providing text file input to <code>curl</code>, you must use the <code>--data-binary</code> flag instead of plain <code>-d</code>.
@@ -3868,6 +3869,13 @@ def reindex(
3868
3869
In this case, the response includes a count of the version conflicts that were encountered.
3869
3870
Note that the handling of other error types is unaffected by the <code>conflicts</code> property.
3870
3871
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>
3872
+
<p>It's recommended to reindex on indices with a green status. Reindexing can fail when a node shuts down or crashes.</p>
3873
+
<ul>
3874
+
<li>When requested with <code>wait_for_completion=true</code> (default), the request fails if the node shuts down.</li>
3875
+
<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.
3876
+
When retrying a failed reindex operation, it might be necessary to set <code>conflicts=proceed</code> or to first delete the partial destination index.
3877
+
Additionally, dry runs, checking disk space, and fetching index recovery information can help address the root cause.</li>
3878
+
</ul>
3871
3879
<p>Refer to the linked documentation for examples of how to reindex documents.</p>
0 commit comments