Elasticsearch: Fix table_status()
This commit is contained in:
parent
3ac662c755
commit
794ba74be4
|
@ -229,7 +229,7 @@ if (isset($_GET["elastic"])) {
|
||||||
"facets" => array(
|
"facets" => array(
|
||||||
"count_by_type" => array(
|
"count_by_type" => array(
|
||||||
"terms" => array(
|
"terms" => array(
|
||||||
"field" => "_type"
|
"field" => "_type",
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
@ -240,10 +240,10 @@ if (isset($_GET["elastic"])) {
|
||||||
$return[$table["term"]] = array(
|
$return[$table["term"]] = array(
|
||||||
"Name" => $table["term"],
|
"Name" => $table["term"],
|
||||||
"Engine" => "table",
|
"Engine" => "table",
|
||||||
"Rows" => $table["count"]
|
"Rows" => $table["count"],
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
if ($name != "") {
|
if ($name != "" && $name == $table["term"]) {
|
||||||
return $return[$name];
|
return $return[$name];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue