// docs/reindex.asciidoc:25

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