lib/Elastica/Type.php
public function getMapping()
    {
        $response = $this->requestEndpoint(new Get());
        $data = $response->getData();

        $mapping = \array_shift($data);
        if (isset($mapping['mappings'])) {
            return $mapping['mappings'];
        }

        return [];
    }
public function getMapping()
    {
        $response = $this->requestEndpoint(new Get());
        $data = $response->getData();

        $mapping = \array_shift($data);
        if (isset($mapping['mappings'])) {
            return $mapping['mappings'];
        }

        return [];
    }
public function getMapping ( ) { $ response = $ this -> requestEndpoint ( new Get ( ) ) ; $ data = $ response -> getData ( ) ; $ mapping = \ array_shift ( $ data ) ; if ( isset ( $ mapping [ 'mappings' ] ) ) { return $ mapping [ 'mappings' ] ; } return [ ] ; }
Returns current mapping for the given type.

@return array Current mapping
Returns current mapping for the given type .