Services/Indexer/Indexer.php
public function rotateAll()
    {
        $pb = $this->prepareProcessBuilder();
        $pb->add('--all');

        $indexer = $pb->getProcess();
        $indexer->run();

        if (strstr($indexer->getOutput(), 'FATAL:') || strstr($indexer->getOutput(), 'ERROR:')) {
            throw new \RuntimeException(sprintf('Error rotating indexes: "%s".', rtrim($indexer->getOutput())));
        }

    }
public function rotateAll()
    {
        $pb = $this->prepareProcessBuilder();
        $pb->add('--all');

        $indexer = $pb->getProcess();
        $indexer->run();

        if (strstr($indexer->getOutput(), 'FATAL:') || strstr($indexer->getOutput(), 'ERROR:')) {
            throw new \RuntimeException(sprintf('Error rotating indexes: "%s".', rtrim($indexer->getOutput())));
        }

    }
public function rotateAll ( ) { $ pb = $ this -> prepareProcessBuilder ( ) ; $ pb -> add ( '--all' ) ; $ indexer = $ pb -> getProcess ( ) ; $ indexer -> run ( ) ; if ( strstr ( $ indexer -> getOutput ( ) , 'FATAL:' ) || strstr ( $ indexer -> getOutput ( ) , 'ERROR:' ) ) { throw new \ RuntimeException ( sprintf ( 'Error rotating indexes: "%s".' , rtrim ( $ indexer -> getOutput ( ) ) ) ) ; } }
Rebuild and rotate all indexes.
Rebuild and rotate all indexes .