How to use bulk api for reindexing

Hi, I am currently using the reindex api like this:
POST _reindex?scroll=60m&timeout=60m
{

"source":{

"index": "source_index"

},

"dest": {
"index": "destination_index"
}
}
. Is this bulk indexing? If not How can I use Bulk api inorder to do similar task which would be faster?

Heya @zatom,

Yes _reindex is utilizing bulk indexing when writing the documents.

See documentation quote

Since the batch is issued as a single _bulk request, large batch sizes will cause Elasticsearch to create many requests and then wait for a while before starting the next set. This is "bursty" instead of "smooth". The default value is -1 .

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.