用途:标记当次请求不执行,而是返回最终请求的JSON内容,用于日常排错。
依赖类:\x\Elasticsearch
方法名:debug()
参数:无
返回值:this
使用示例:
$Elasticsearch = new \x\Elasticsearch();
$where = [
['title', '=', '骑士队', 'must'],
['title', '=', '利夫兰', 'filter'],
];
$res = $Elasticsearch->table('shop')->where($where)->debug()->select();
var_dump($res);