Elasticsearch: Show executed query as a json

This commit is contained in:
Bohuslav Simek 2019-03-23 11:42:45 +01:00 committed by Jakub Vrana
parent 4b6833ba65
commit 33234fef19

View file

@ -148,7 +148,7 @@ if (isset($_GET["elastic"])) {
$start = microtime(true);
$search = $this->_conn->query($query, $data);
if ($print) {
echo $adminer->selectQuery("$query: " . print_r($data, true), $start, !$search);
echo $adminer->selectQuery("$query: " . json_encode($data), $start, !$search);
}
if (!$search) {
return false;