// docs/reindex.asciidoc:251

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