1 <?php 2 $options = array 3 ( 4 'hostname' => 'localhost', 5 'port' => '8080', 6 'path'=>'solr/help_category', 7 'wt'=>'json' 8 ); 9 $client = new SolrClient($options); 10 11 $entryId=501000; 12 $client->deleteById($entryId); 13 //$client->deleteByQuery('id:'.$entryId); 14 $return=$client->commit(); 15 var_dump($return); 16 ?>