$actions =
[ ['add' =>
['index' =>
$index, 'alias' =>
$alias]],
];
$current =
$this->client->
indices()->
getAlias(['name' =>
$alias]);
$current =
array_keys($current);
foreach ($current as $value) { $actions[] =
['remove' =>
['index' =>
$value, 'alias' =>
$alias]];
} $this->client->
indices()->
updateAliases(['body' =>
['actions' =>
$actions]]);
} private function handleQueue(): void
{ /**
* @deprecated tag:v6.6.0 - Will be removed
*/
if (Feature::
isActive('ES_MULTILINGUAL_INDEX'
)) { $this->keyValueStorage->
set(ElasticsearchHelper::ENABLE_MULTILINGUAL_INDEX_KEY, 1
);
}