We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 060eeb9 commit e6e89fcCopy full SHA for e6e89fc
src/Jobs/ActivateIndex.php
@@ -15,12 +15,8 @@ public function __construct(
15
16
public function handle(): void
17
{
18
- $oldIndex = $this->indexConfig->getBlueGreenActiveElasticaIndex();
19
$newIndex = $this->indexConfig->getBlueGreenInactiveElasticaIndex();
20
-
21
$newIndex->flush();
22
- $oldIndex->removeAlias($this->indexConfig->getName());
23
- $newIndex->addAlias($this->indexConfig->getName());
24
- $oldIndex->flush();
+ $newIndex->addAlias($this->indexConfig->getName(), true);
25
}
26
0 commit comments