/** * @param string $newIndexName */ private function createNewIndexMapping($newIndexName) { $this->mappingCreator->setIndex($newIndexName); $this->onBeforeCreatingIndex($newIndexName); $this->mappingCreator->create(FALSE); $this->onAfterCreatingIndex($newIndexName); }