Removes an alias pointing to the current index.
public removeAlias ( string $name ) : |
||
$name | string | Alias name |
return | Response |
/** * @param ElasticIndex $oldIndex * @param ElasticIndex $newIndex */ private function moveAliasBetweenIndices(ElasticIndex $oldIndex, ElasticIndex $newIndex) { $oldIndex->removeAlias(MappingCreator::ELASTIC_ALIAS); $newIndex->addAlias(MappingCreator::ELASTIC_ALIAS); }