1// docs/reindex.asciidoc:955 2 3[source, php] 4---- 5$params = [ 6 'body' => [ 7 'source' => [ 8 'remote' => [ 9 'host' => 'http://otherhost:9200', 10 ], 11 'index' => 'source', 12 'size' => 10, 13 'query' => [ 14 'match' => [ 15 'test' => 'data', 16 ], 17 ], 18 ], 19 'dest' => [ 20 'index' => 'dest', 21 ], 22 ], 23]; 24$response = $client->reindex($params); 25---- 26