public function getMapping() { $typeName = $this->getTypeName(); $type = $this->getIndex()->getType($typeName); return $type->getMapping(); }