src/Search/SearchHandler.php
public function truncateTable()
    {
        $connection = $this->_em->getConnection();
        $dbPlatform = $connection->getDatabasePlatform();
        $connection->beginTransaction();
        try {
            $q = $dbPlatform->getTruncateTableSql($this->getSearchIndexTable());
            $connection->executeUpdate($q);
            $connection->commit();

            return true;
        } catch (\Exception $e) {
            $connection->rollback();

            return false;
        }
    }
public function truncateTable()
    {
        $connection = $this->_em->getConnection();
        $dbPlatform = $connection->getDatabasePlatform();
        $connection->beginTransaction();
        try {
            $q = $dbPlatform->getTruncateTableSql($this->getSearchIndexTable());
            $connection->executeUpdate($q);
            $connection->commit();

            return true;
        } catch (\Exception $e) {
            $connection->rollback();

            return false;
        }
    }
public function truncateTable ( ) { $ connection = $ this -> _em -> getConnection ( ) ; $ dbPlatform = $ connection -> getDatabasePlatform ( ) ; $ connection -> beginTransaction ( ) ; try { $ q = $ dbPlatform -> getTruncateTableSql ( $ this -> getSearchIndexTable ( ) ) ; $ connection -> executeUpdate ( $ q ) ; $ connection -> commit ( ) ; return true ; } catch ( \ Exception $ e ) { $ connection -> rollback ( ) ; return false ; } }
Truncates the search index table.

@return bool true if success
Truncates the search index table .