Skip to content

Latest commit

 

History

History
26 lines (25 loc) · 553 Bytes

36b2778f23d0955255f52c075c4d213d.asciidoc

File metadata and controls

26 lines (25 loc) · 553 Bytes
$params = [
    'body' => [
        'source' => [
            'remote' => [
                'host' => 'http://otherhost:9200',
                'username' => 'user',
                'password' => 'pass',
            ],
            'index' => 'source',
            'query' => [
                'match' => [
                    'test' => 'data',
                ],
            ],
        ],
        'dest' => [
            'index' => 'dest',
        ],
    ],
];
$response = $client->reindex($params);