PHP删除Solr文档

 <?php
$options = array
(
'hostname' => 'localhost',
'port' => '8080',
'path'=>'solr/help_category',
'wt'=>'json'
);
$client = new SolrClient($options); $entryId=501000;
$client->deleteById($entryId);
//$client->deleteByQuery('id:'.$entryId);
$return=$client->commit();
var_dump($return);
?>
上一篇:2018-2019-3《Java程序设计》第二周学习总结


下一篇:Augularjs-起步