public function trancate_all_orders() { $options = array('hostname' => SOLR_SERVER_HOSTNAME, 'port' => SOLR_SERVER_PORT); $client = new SolrClient($options); $updateResponse = $client->deleteByQueries(array('*:*')); $client->commit(); }