Command/ReindexCommand.php
protected function clearIndex(IndexerInterface $indexer, InputInterface $input, OutputInterface $output)
    {
        if (!$input->getOption('clear')) {
            return;
        }

        $context = $this->getContainer()->getParameter('sulu.context');
        $output->writeln(sprintf('Cleared index for the <comment>`%s`</comment> context', $context));
        $indexer->clear();
    }
protected function clearIndex(IndexerInterface $indexer, InputInterface $input, OutputInterface $output)
    {
        if (!$input->getOption('clear')) {
            return;
        }

        $context = $this->getContainer()->getParameter('sulu.context');
        $output->writeln(sprintf('Cleared index for the <comment>`%s`</comment> context', $context));
        $indexer->clear();
    }
protected function clearIndex ( IndexerInterface $ indexer , InputInterface $ input , OutputInterface $ output ) { if ( ! $ input -> getOption ( 'clear' ) ) { return ; } $ context = $ this -> getContainer ( ) -> getParameter ( 'sulu.context' ) ; $ output -> writeln ( sprintf ( 'Cleared index for the <comment>`%s`</comment> context' , $ context ) ) ; $ indexer -> clear ( ) ; }
Clear article-content of index.

@param IndexerInterface $indexer
@param InputInterface $input
@param OutputInterface $output
Clear article - content of index .