mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-25 17:38:44 +00:00
Documentation for scroll size in reindex
This commit is contained in:
parent
7f794e7b77
commit
3caa5a929a
@ -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:
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user