File manager - Edit - /var/www/payraty/helpdesk/vendor/elasticsearch/elasticsearch/docs/examples/de176bc4788ea286fff9e92418a43ea8.asciidoc
Back
// indices/aliases.asciidoc:276 [source, php] ---- $params = [ 'index' => 'test', ]; $response = $client->indices()->create($params); $params = [ 'index' => 'test_2', ]; $response = $client->indices()->create($params); $params = [ 'body' => [ 'actions' => [ [ 'add' => [ 'index' => 'test_2', 'alias' => 'test', ], ], [ 'remove_index' => [ 'index' => 'test', ], ], ], ], ]; $response = $client->indices()->updateAliases($params); ----
| ver. 1.4 |
Github
|
.
| PHP 8.3.30 | Generation time: 0 |
proxy
|
phpinfo
|
Settings