File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed
Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff 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 *
You can’t perform that action at this time.
0 commit comments