mirror of
https://github.com/vrana/adminer.git
synced 2025-08-10 08:34:20 +02:00
Elasticsearch: Don't use selectQueryBuild()
This commit is contained in:
@@ -90,9 +90,7 @@ if (isset($_GET["elastic"])) {
|
||||
|
||||
function select($table, $select, $where, $group, $order, $limit, $page, $print = false) {
|
||||
global $adminer;
|
||||
$query = $adminer->selectQueryBuild($select, $where, $group, $order, $limit, $page);
|
||||
$data = array();
|
||||
if (!$query) {
|
||||
$query = "$table/_search";
|
||||
if ($select != array("*")) {
|
||||
$data["fields"] = $select;
|
||||
@@ -124,7 +122,6 @@ if (isset($_GET["elastic"])) {
|
||||
if ($data["query"] && !$data["query"]["filtered"]["query"]) {
|
||||
$data["query"]["filtered"]["query"] = array("match_all" => array());
|
||||
}
|
||||
}
|
||||
if ($print) {
|
||||
echo $adminer->selectQuery("$query: " . print_r($data, true));
|
||||
}
|
||||
|
Reference in New Issue
Block a user