search/plugins/ezsolr/ezsolr.php
function cleanup( $allInstallations = false, $optimize = false )
    {
        if ( $allInstallations === true )
        {
            $optimize = true;
            $deleteQuery = '*:*';
        }
        else
        {
            $deleteQuery = ezfSolrDocumentFieldBase::generateMetaFieldName( 'installation_id' ) . ':' . self::installationID();
        }
        if ( $this->UseMultiLanguageCores == true )
        {
            foreach ( $this->SolrLanguageShards as $shard )
            {
                $shard->deleteDocs( array(), $deleteQuery, true, $optimize );
            }
            return true;
        }
        else
        {
            return $this->Solr->deleteDocs( array(), $deleteQuery, true );
        }

    }
function cleanup( $allInstallations = false, $optimize = false )
    {
        if ( $allInstallations === true )
        {
            $optimize = true;
            $deleteQuery = '*:*';
        }
        else
        {
            $deleteQuery = ezfSolrDocumentFieldBase::generateMetaFieldName( 'installation_id' ) . ':' . self::installationID();
        }
        if ( $this->UseMultiLanguageCores == true )
        {
            foreach ( $this->SolrLanguageShards as $shard )
            {
                $shard->deleteDocs( array(), $deleteQuery, true, $optimize );
            }
            return true;
        }
        else
        {
            return $this->Solr->deleteDocs( array(), $deleteQuery, true );
        }

    }
function cleanup ( $ allInstallations = false , $ optimize = false ) { if ( $ allInstallations === true ) { $ optimize = true ; $ deleteQuery = '*:*' ; } else { $ deleteQuery = ezfSolrDocumentFieldBase :: generateMetaFieldName ( 'installation_id' ) . ':' . self :: installationID ( ) ; } if ( $ this -> UseMultiLanguageCores == true ) { foreach ( $ this -> SolrLanguageShards as $ shard ) { $ shard -> deleteDocs ( array ( ) , $ deleteQuery , true , $ optimize ) ; } return true ; } else { return $ this -> Solr -> deleteDocs ( array ( ) , $ deleteQuery , true ) ; } }
Clean up search index for current installation.
@return bool true if cleanup was successful
@todo:  handle multicore configs (need a parameter for it) for return values
Clean up search index for current installation .