@@ -161,12 +161,12 @@ POST _reindex
161
161
162
162
`index` and `type` in `source` can both be lists, allowing you to copy from
163
163
lots of sources in one request. This will copy documents from the `_doc` and
164
- `post` types in the `twitter` and `blog` index. The copied documents would include the
165
- `post` type in the `twitter` index and the `_doc` type in the `blog` index. For more
164
+ `post` types in the `twitter` and `blog` index. The copied documents would include the
165
+ `post` type in the `twitter` index and the `_doc` type in the `blog` index. For more
166
166
specific parameters, you can use `query`.
167
167
168
- The Reindex API makes no effort to handle ID collisions. For such issues, the target index
169
- will remain valid, but it's not easy to predict which document will survive because
168
+ The Reindex API makes no effort to handle ID collisions. For such issues, the target index
169
+ will remain valid, but it's not easy to predict which document will survive because
170
170
the iteration order isn't well defined.
171
171
172
172
[source,js]
@@ -666,9 +666,11 @@ executed again in order to conform to `requests_per_second`.
666
666
667
667
`failures`::
668
668
669
- Array of all indexing failures. If this is non-empty then the request aborted
670
- because of those failures. See `conflicts` for how to prevent version conflicts
671
- from aborting the operation.
669
+ Array of failures if there were any unrecoverable errors during the process. If
670
+ this is non-empty then the request aborted because of those failures. Reindex
671
+ is implemented using batches and any failure causes the entire process to abort
672
+ but all failures in the current batch are collected into the array. You can use
673
+ the `conflicts` option to prevent reindex from aborting on version conflicts.
672
674
673
675
[float]
674
676
[[docs-reindex-task-api]]
@@ -1004,7 +1006,7 @@ number for most indices. If slicing manually or otherwise tuning
1004
1006
automatic slicing, use these guidelines.
1005
1007
1006
1008
Query performance is most efficient when the number of `slices` is equal to the
1007
- number of shards in the index. If that number is large (e.g. 500),
1009
+ number of shards in the index. If that number is large (e.g. 500),
1008
1010
choose a lower number as too many `slices` will hurt performance. Setting
1009
1011
`slices` higher than the number of shards generally does not improve efficiency
1010
1012
and adds overhead.
@@ -1018,7 +1020,7 @@ documents being reindexed and cluster resources.
1018
1020
[float]
1019
1021
=== Reindex daily indices
1020
1022
1021
- You can use `_reindex` in combination with <<modules-scripting-painless, Painless>>
1023
+ You can use `_reindex` in combination with <<modules-scripting-painless, Painless>>
1022
1024
to reindex daily indices to apply a new template to the existing documents.
1023
1025
1024
1026
Assuming you have indices consisting of documents as follows:
0 commit comments