Doc: /_reindex: Add a note about the source size parameter
Closes #18484
This commit is contained in:
parent
63c5b31449
commit
4de2848668
|
@ -131,6 +131,23 @@ POST _reindex
|
||||||
// CONSOLE
|
// CONSOLE
|
||||||
// TEST[setup:twitter]
|
// TEST[setup:twitter]
|
||||||
|
|
||||||
|
You can increase the default batch size by setting the `size` parameter (which defaults to `1000`) to the `source`. Note that it is different than the `size` parameter available at the root, which limits the number of documents (see below).
|
||||||
|
|
||||||
|
[source,js]
|
||||||
|
--------------------------------------------------
|
||||||
|
POST /_reindex
|
||||||
|
{
|
||||||
|
"source": {
|
||||||
|
"index": "twitter",
|
||||||
|
"size": 2000
|
||||||
|
},
|
||||||
|
"dest": {
|
||||||
|
"index": "new_twitter"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
--------------------------------------------------
|
||||||
|
// AUTOSENSE
|
||||||
|
|
||||||
You can limit the documents by adding a type to the `source` or by adding a
|
You can limit the documents by adding a type to the `source` or by adding a
|
||||||
query. This will only copy ++tweet++'s made by `kimchy` into `new_twitter`:
|
query. This will only copy ++tweet++'s made by `kimchy` into `new_twitter`:
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue