// docs/reindex.asciidoc:683

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