/** * @param string $clusterIdentifier * @param array $applicationIds * @throws ezfSolrException */ public static function reindex( $clusterIdentifier, $applicationIds = array() ) { $applicationSearch = new self(); $solrBase = new eZSolrBase(); $url = $solrBase->SearchServerURI . '/update'; // delete all $solrBase->sendHTTPRequest( $url, $applicationSearch->bulidDeleteXml( $clusterIdentifier ), 'text/xml' ); $solrBase->commit(); // add wanted $xml = $applicationSearch->bulidUpdateXml( $clusterIdentifier, $applicationIds ); $solrBase->sendHTTPRequest( $url, $xml, 'text/xml' ); $solrBase->commit(); }