public function getMapping()
{
$path = '_mapping';
$response = $this->request($path, Request::GET);
$data = $response->getData();
// Get first entry as if index is an Alias, the name of the mapping is the real name and not alias name
$mapping = array_shift($data);
if (isset($mapping['mappings'])) {
return $mapping['mappings'];
}
return [];
}