Elasticsearch-php: Create aliases from client object

Created on 21 Mar 2014  路  1Comment  路  Source: elastic/elasticsearch-php

How can I create aliases from Client object

Most helpful comment

$params['body'] = array(
    'actions' => array(
        array(
            'add' => array(
                'index' => 'myindex',
                'alias' => 'myalias'
            )
        )
    )
);
$client->indices()->updateAliases($params);

>All comments

$params['body'] = array(
    'actions' => array(
        array(
            'add' => array(
                'index' => 'myindex',
                'alias' => 'myalias'
            )
        )
    )
);
$client->indices()->updateAliases($params);
Was this page helpful?
0 / 5 - 0 ratings