mirror of
https://github.com/vrana/adminer.git
synced 2025-08-15 11:04:02 +02:00
Elasticsearch: check for valid mappings
This commit is contained in:
@@ -280,6 +280,7 @@ if (isset($_GET["elastic"])) {
|
|||||||
if (!$mappings) {
|
if (!$mappings) {
|
||||||
$mappings = $result[$connection->_db]['mappings'][$table]['properties'];
|
$mappings = $result[$connection->_db]['mappings'][$table]['properties'];
|
||||||
}
|
}
|
||||||
|
if ($mappings) {
|
||||||
foreach ($mappings as $name => $field) {
|
foreach ($mappings as $name => $field) {
|
||||||
$return[$name] = array(
|
$return[$name] = array(
|
||||||
"field" => $name,
|
"field" => $name,
|
||||||
@@ -289,6 +290,7 @@ if (isset($_GET["elastic"])) {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return $return;
|
return $return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user