|
|
|
@ -233,8 +233,8 @@ class Client |
|
|
|
|
|
|
|
|
|
];*/ |
|
|
|
|
$must[] = [ |
|
|
|
|
// 'match' => [$filed => $value] |
|
|
|
|
'match_phrase' => [$filed => $value] |
|
|
|
|
'match' => [$filed => $value] |
|
|
|
|
// 'match_phrase' => [$filed => $value] |
|
|
|
|
]; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
@ -281,7 +281,7 @@ class Client |
|
|
|
|
|
|
|
|
|
public function query($isTotal = false) |
|
|
|
|
{ |
|
|
|
|
// try { |
|
|
|
|
try { |
|
|
|
|
$this->parseQueryParams(); |
|
|
|
|
|
|
|
|
|
// dd($this->queryParams); |
|
|
|
@ -333,15 +333,15 @@ class Client |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// } catch (\Exception $e) { |
|
|
|
|
// |
|
|
|
|
// $msg = $e->getMessage(); |
|
|
|
|
// |
|
|
|
|
// $msg = '服务器开小差了~'; |
|
|
|
|
// |
|
|
|
|
// throw new Exception($msg); |
|
|
|
|
// |
|
|
|
|
// } |
|
|
|
|
} catch (\Exception $e) { |
|
|
|
|
|
|
|
|
|
$msg = $e->getMessage(); |
|
|
|
|
|
|
|
|
|
$msg = '服务器开小差了~'; |
|
|
|
|
|
|
|
|
|
throw new Exception($msg); |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|