private function checkAndStoreIndexMapping($mapping) { if (isset($mapping['indexed']) && $mapping['indexed']) { $this->indexes[] = $mapping['fieldName']; } unset($mapping['indexed']); return $mapping; }