Open kftseng opened 1 year ago
Hello,
Would you mind to submit a patch?
Thanks
diff --git a/src/IndexBuilder.php b/src/IndexBuilder.php
index 33a461d..8b8af56 100644
--- a/src/IndexBuilder.php
+++ b/src/IndexBuilder.php
@@ -54,7 +54,7 @@ class IndexBuilder
$data = ['actions' => []];
- $data['actions'][] = ['remove' => ['index' => '*', 'alias' => $indexName]];
+ $data['actions'][] = ['remove' => ['index' => $indexName . '*', 'alias' => $indexName]];
$data['actions'][] = ['add' => ['index' => $index->getName(), 'alias' => $indexName]];
return $this->client->request('_aliases', Request::POST, $data);
must patch IndexBuilder.php~