private function validateMapping()
 {
     $validator = new \CirrusSearch\Maintenance\Validators\MappingValidator($this->getIndex(), $this->optimizeIndexForExperimentalHighlighter, $this->availablePlugins, $this->getMappingConfig(), array('page' => $this->getPageType(), 'namespace' => $this->getNamespaceType()), $this);
     $validator->printDebugCheckConfig($this->printDebugCheckConfig);
     $status = $validator->validate();
     if (!$status->isOK()) {
         $this->error($status->getMessage()->text(), 1);
     }
 }
 private function createMapping()
 {
     $type = $this->getType();
     $mappingConfigBuilder = new SuggesterMappingConfigBuilder();
     $validator = new \CirrusSearch\Maintenance\Validators\MappingValidator($this->getIndex(), false, $this->availablePlugins, $mappingConfigBuilder->buildConfig(), array(Connection::TITLE_SUGGEST_TYPE_NAME => $type), $this);
     $status = $validator->validate();
     if (!$status->isOK()) {
         $this->error($status->getMessage()->text(), 1);
     }
 }