protected function _meta($features = null, array $options = []) {
        if ($features) {
            $features = join(',', array_map(function($item) {
                        return '_' . strtolower(trim($item, '_'));
                    }, is_scalar($features) ? explode(",", $features) : $features));
        }
        $options = ['index' => $this->index()] + $options + ($features ? ['feature' => $features] : []);
        $result = $this->client->indices()->get($options);
        $result = array_pop($result);
        return $result;
    }
protected function _meta($features = null, array $options = []) {
        if ($features) {
            $features = join(',', array_map(function($item) {
                        return '_' . strtolower(trim($item, '_'));
                    }, is_scalar($features) ? explode(",", $features) : $features));
        }
        $options = ['index' => $this->index()] + $options + ($features ? ['feature' => $features] : []);
        $result = $this->client->indices()->get($options);
        $result = array_pop($result);
        return $result;
    }
protected function _meta ( $ features = null , array $ options = [ ] ) { if ( $ features ) { $ features = join ( ',' , array_map ( function ( $ item ) { return '_' . strtolower ( trim ( $ item , '_' ) ) ; } , is_scalar ( $ features ) ? explode ( "," , $ features ) : $ features ) ) ; } $ options = [ 'index' => $ this -> index ( ) ] + $ options + ( $ features ? [ 'feature' => $ features ] : [ ] ) ; $ result = $ this -> client -> indices ( ) -> get ( $ options ) ; $ result = array_pop ( $ result ) ; return $ result ; }
Retreives the meta data of an index
@param string|array $features a list of meta objects to fetch. null means
everything. Can be
* 1 string (i.e. '_settings'),
* csv (i.e. '_settings,_aliases'),
* array (i.e. ['_settings','_aliases']
@param array $options can contain:
['ignore_unavailable']
(bool) Whether specified concrete indices should be ignored
when unavailable (missing or closed)
['allow_no_indices']
(bool) Whether to ignore if a wildcard indices expression
resolves into no concrete indices. (This includes `_all`
string or when no indices have been specified)
['expand_wildcards']
(enum) Whether to expand wildcard expression to concrete
indices that are open, closed or both.
['local']
(bool) Return local information, do not retrieve the state
from master node (default: false)
@return array
Retreives the meta data of an index