// docs/reindex.asciidoc:264

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