mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-26 18:08:36 +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
|
POST /_reindex
|
||||||
{
|
{
|
||||||
"source": {
|
"source": {
|
||||||
"index": "source"
|
"index": "source",
|
||||||
"query": {
|
"query": {
|
||||||
"match": {
|
"match": {
|
||||||
"company": "cat"
|
"company": "cat"
|
||||||
@ -282,6 +282,25 @@ POST /_reindex
|
|||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
// AUTOSENSE
|
// 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
|
Reindex can also use the <<ingest>> feature by specifying a
|
||||||
`pipeline` like this:
|
`pipeline` like this:
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user