File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11<?php
2-
32declare (strict_types=1 );
43
54namespace 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
Original file line number Diff line number Diff 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 ();
Original file line number Diff line number Diff 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 ' ]);
You can’t perform that action at this time.
0 commit comments