protected function execute(InputInterface $input, OutputInterface $output)
 {
     $currentRevision = NULL;
     if ($input->getArgument('crawl') == 'crawl') {
         $this->output->writeln('<comment>LuceneSearch: Start Crawling</comment>');
         Tool\Executer::runCrawler();
         Tool\Executer::generateSitemap();
         $this->output->writeln('LuceneSearch: Finished crawl');
     }
 }
 public function frontendCrawl()
 {
     if (self::frontendConfigComplete()) {
         Tool\Executer::runCrawler();
         Tool\Executer::generateSitemap();
     } else {
         \Pimcore\Logger::debug('LuceneSearch_Plugin: Did not start frontend crawler, because config incomplete');
     }
 }