首页 > 编程技术 > js

阿里云OpenSearch在php版sdk开启调试模式

发布时间:2016-5-19 22:52

版本:php_v2.0.6

在CloudsearchClient的类中,开启debug模式,设置为true

如:$opts = array('host'=>$host,'debug'=>true);

注意true不能加引号


在实例化一个搜索类之后,后面获取调试信息

$json = $search_obj->search(); // 执行搜索,获取搜索结果
 echo $client->getRequest();



注意getRequest要放在search()之面,即执行了search()之后,才有getRequest信息。

标签:[!--infotagslink--]

您可能感兴趣的文章: