Documentation for scroll size in reindex

This commit is contained in:
Nik Everett 2016-03-31 10:03:12 -04:00
parent 7f794e7b77
commit 3caa5a929a

View File

@ -267,7 +267,7 @@ routing set to `cat`.
POST /_reindex
{
"source": {
"index": "source"
"index": "source",
"query": {
"match": {
"company": "cat"
@ -282,6 +282,25 @@ POST /_reindex
--------------------------------------------------
// AUTOSENSE
By default `_reindex` uses scroll batches of 100. You can change the
batch size with the `size` field in the `source` element:
[source,js]
--------------------------------------------------
POST /_reindex
{
"source": {
"index": "source",
"size": 1000
},
"dest": {
"index": "dest",
"routing": "=cat"
}
}
--------------------------------------------------
// AUTOSENSE
Reindex can also use the <<ingest>> feature by specifying a
`pipeline` like this: