用途:执行条件查询语法
依赖类:\x\Elasticsearch
方法名:select()
参数:无
返回值:失败返回false
,成功返回es的$res['hits']['hits']
节点内容(带_id
的三维数组)。
使用示例:
$Elasticsearch = new \x\Elasticsearch();
$where = [
['title', '=', '骑士队', 'must'],
['title', '=', '利夫兰', 'filter'],
['age', '>=', 18],
['age', '<=', 28],
];
$res = $Elasticsearch->table('shop')->where($where)->select();
var_dump($res);