Skip to content

Commit 60f7237

Browse files
author
Simonas Šerlinskas
committed
added getAliases
1 parent adc169f commit 60f7237

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

Service/Manager.php

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -641,15 +641,26 @@ public function clearScroll($scrollId)
641641
}
642642

643643
/**
644-
* Calls "Get Settings API" will return you the currently configured settings for manager index.
644+
* Calls "Get Settings API" in Elasticsearch and will return you the currently configured settings.
645645
*
646646
* return array
647647
*/
648-
public function getIndexSettings()
648+
public function getSettings()
649649
{
650650
return $this->getClient()->indices()->getSettings(['index' => $this->getIndexName()]);
651651
}
652652

653+
/**
654+
* Gets Elasticsearch aliases information.
655+
* @param $params
656+
*
657+
* @return array
658+
*/
659+
public function getAliases($params = [])
660+
{
661+
return $this->getClient()->indices()->getAliases(array_merge(['index' => $this->getIndexName()], $params));
662+
}
663+
653664
/**
654665
* Resolves type name by class name.
655666
*

0 commit comments

Comments
 (0)