// docs/reindex.asciidoc:20

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