Elasticsearch: Show executed query as a json
This commit is contained in:
parent
4b6833ba65
commit
33234fef19
|
@ -148,7 +148,7 @@ if (isset($_GET["elastic"])) {
|
||||||
$start = microtime(true);
|
$start = microtime(true);
|
||||||
$search = $this->_conn->query($query, $data);
|
$search = $this->_conn->query($query, $data);
|
||||||
if ($print) {
|
if ($print) {
|
||||||
echo $adminer->selectQuery("$query: " . print_r($data, true), $start, !$search);
|
echo $adminer->selectQuery("$query: " . json_encode($data), $start, !$search);
|
||||||
}
|
}
|
||||||
if (!$search) {
|
if (!$search) {
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in a new issue