lib/Elastica/Index.php
public function getAliases()
    {
        $endpoint = new \Elasticsearch\Endpoints\Indices\Alias\Get();
        $endpoint->setName('*');

        $responseData = $this->requestEndpoint($endpoint)->getData();

        if (!isset($responseData[$this->getName()])) {
            return [];
        }

        $data = $responseData[$this->getName()];
        if (!empty($data['aliases'])) {
            return \array_keys($data['aliases']);
        }

        return [];
    }
public function getAliases()
    {
        $endpoint = new \Elasticsearch\Endpoints\Indices\Alias\Get();
        $endpoint->setName('*');

        $responseData = $this->requestEndpoint($endpoint)->getData();

        if (!isset($responseData[$this->getName()])) {
            return [];
        }

        $data = $responseData[$this->getName()];
        if (!empty($data['aliases'])) {
            return \array_keys($data['aliases']);
        }

        return [];
    }
public function getAliases ( ) { $ endpoint = new \ Elasticsearch \ Endpoints \ Indices \ Alias \ Get ( ) ; $ endpoint -> setName ( '*' ) ; $ responseData = $ this -> requestEndpoint ( $ endpoint ) -> getData ( ) ; if ( ! isset ( $ responseData [ $ this -> getName ( ) ] ) ) { return [ ] ; } $ data = $ responseData [ $ this -> getName ( ) ] ; if ( ! empty ( $ data [ 'aliases' ] ) ) { return \ array_keys ( $ data [ 'aliases' ] ) ; } return [ ] ; }
Returns all index aliases.

@return array Aliases
Returns all index aliases .