Skip to content

Commit 99a6c41

Browse files
committed
TASK: Rename getIndexeNamesByAlias to getIndexNamesByAlias
1 parent 330899a commit 99a6c41

3 files changed

Lines changed: 5 additions & 6 deletions

File tree

Classes/Driver/IndexDriverInterface.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<?php
2-
32
declare(strict_types=1);
43

54
namespace Flowpack\ElasticSearch\ContentRepositoryAdaptor\Driver;
@@ -26,7 +25,7 @@ interface IndexDriverInterface
2625
* @param string $alias
2726
* @return array
2827
*/
29-
public function getIndexeNamesByAlias(string $alias): array;
28+
public function getIndexNamesByAlias(string $alias): array;
3029

3130
/**
3231
* Get the list of Indexes attached to the given alias prefix

Classes/Driver/Version5/IndexDriver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public function deleteIndex(string $index): void
6262
* @throws ApiException
6363
* @throws \Neos\Flow\Http\Exception
6464
*/
65-
public function getIndexeNamesByAlias(string $alias): array
65+
public function getIndexNamesByAlias(string $alias): array
6666
{
6767
$response = $this->searchClient->request('GET', '/_alias/' . $alias);
6868
$statusCode = $response->getStatusCode();

Classes/Indexer/NodeIndexer.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ public function updateIndexAlias(): void
507507

508508
$aliasActions = [];
509509
try {
510-
$indexNames = $this->indexDriver->getIndexeNamesByAlias($aliasName);
510+
$indexNames = $this->indexDriver->getIndexNamesByAlias($aliasName);
511511
if ($indexNames === []) {
512512
// if there is an actual index with the name we want to use as alias, remove it now
513513
$this->indexDriver->deleteIndex($aliasName);
@@ -551,7 +551,7 @@ public function updateMainAlias()
551551

552552
$cleanupAlias = function ($alias) use (&$aliasActions) {
553553
try {
554-
$indexNames = $this->indexDriver->getIndexeNamesByAlias($alias);
554+
$indexNames = $this->indexDriver->getIndexNamesByAlias($alias);
555555
if ($indexNames === []) {
556556
// if there is an actual index with the name we want to use as alias, remove it now
557557
$this->indexDriver->deleteIndex($alias);
@@ -611,7 +611,7 @@ public function removeOldIndices(): array
611611
{
612612
$aliasName = $this->searchClient->getIndexName(); // The alias name is the unprefixed index name
613613

614-
$currentlyLiveIndices = $this->indexDriver->getIndexeNamesByAlias($aliasName);
614+
$currentlyLiveIndices = $this->indexDriver->getIndexNamesByAlias($aliasName);
615615

616616
$indexStatus = $this->systemDriver->status();
617617
$allIndices = array_keys($indexStatus['indices']);

0 commit comments

Comments
 (0)