Elasticsearch: check for valid mappings

This commit is contained in:
Gargaj 2014-09-06 01:20:20 +02:00 committed by Jakub Vrana
parent fe57642b6c
commit 9315954f3e

View file

@ -280,6 +280,7 @@ if (isset($_GET["elastic"])) {
if (!$mappings) {
$mappings = $result[$connection->_db]['mappings'][$table]['properties'];
}
if ($mappings) {
foreach ($mappings as $name => $field) {
$return[$name] = array(
"field" => $name,
@ -289,6 +290,7 @@ if (isset($_GET["elastic"])) {
);
}
}
}
return $return;
}