File tree Expand file tree Collapse file tree 2 files changed +21
-1
lines changed
Expand file tree Collapse file tree 2 files changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -640,6 +640,27 @@ public function clearScroll($scrollId)
640640 $ this ->getClient ()->clearScroll (['scroll_id ' => $ scrollId ]);
641641 }
642642
643+ /**
644+ * Calls "Get Settings API" in Elasticsearch and will return you the currently configured settings.
645+ *
646+ * return array
647+ */
648+ public function getSettings ()
649+ {
650+ return $ this ->getClient ()->indices ()->getSettings (['index ' => $ this ->getIndexName ()]);
651+ }
652+
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+
643664 /**
644665 * Resolves type name by class name.
645666 *
Original file line number Diff line number Diff line change @@ -191,7 +191,6 @@ public function createSearch()
191191 return new Search ();
192192 }
193193
194-
195194 /**
196195 * Parses scroll configuration from raw response.
197196 *
You can’t perform that action at this time.
0 commit comments