// docs/reindex.asciidoc:635

[source, php]
----
$params = [
    'body' => [
        'max_docs' => 1,
        'source' => [
            'index' => 'twitter',
        ],
        'dest' => [
            'index' => 'new_twitter',
        ],
    ],
];
$response = $client->reindex($params);
----
