Elasticsearch: fix tables_list
otherwise it only returns "mappings" as the table
This commit is contained in:
parent
9315954f3e
commit
024d73934f
|
@ -222,7 +222,7 @@ if (isset($_GET["elastic"])) {
|
||||||
global $connection;
|
global $connection;
|
||||||
$return = $connection->query('_mapping');
|
$return = $connection->query('_mapping');
|
||||||
if ($return) {
|
if ($return) {
|
||||||
$return = array_fill_keys(array_keys(reset($return)), 'table');
|
$return = array_fill_keys(array_keys($return[$connection->_db]["mappings"]), 'table');
|
||||||
}
|
}
|
||||||
return $return;
|
return $return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue