public function cleanup()
    {
        // Indexing is not implemented in eZ Publish 5 legacy search engine
        if ( $this->searchHandler instanceof LegacyHandler )
        {
            $db = eZDB::instance();
            $db->begin();
            $db->query( "DELETE FROM ezsearch_word" );
            $db->query( "DELETE FROM ezsearch_object_word_link" );
            $db->commit();
        }
        else if ( method_exists( $this->searchHandler, 'purgeIndex' ) )
        {
            $this->searchHandler->purgeIndex();
        }
    }
public function cleanup()
    {
        // Indexing is not implemented in eZ Publish 5 legacy search engine
        if ( $this->searchHandler instanceof LegacyHandler )
        {
            $db = eZDB::instance();
            $db->begin();
            $db->query( "DELETE FROM ezsearch_word" );
            $db->query( "DELETE FROM ezsearch_object_word_link" );
            $db->commit();
        }
        else if ( method_exists( $this->searchHandler, 'purgeIndex' ) )
        {
            $this->searchHandler->purgeIndex();
        }
    }
public function cleanup ( ) { // Indexing is not implemented in eZ Publish 5 legacy search engine if ( $ this -> searchHandler instanceof LegacyHandler ) { $ db = eZDB :: instance ( ) ; $ db -> begin ( ) ; $ db -> query ( "DELETE FROM ezsearch_word" ) ; $ db -> query ( "DELETE FROM ezsearch_object_word_link" ) ; $ db -> commit ( ) ; } else if ( method_exists ( $ this -> searchHandler , 'purgeIndex' ) ) { $ this -> searchHandler -> purgeIndex ( ) ; } }
Purges the index.
Purges the index .