mirror of
https://github.com/vrana/adminer.git
synced 2025-12-27 10:51:01 +01:00
Result records in Elasticsearch do not always have all columns that are defined in an index. This often happens when multiple document types are stored in the same index. The first row has columns ["_id", "html", "url"], while the second misses the "html" column: ["_id", "url"]. Adminer expects that all result rows include all columns. This leads to the problem that the "url" value in the 2nd example row was rendered in the "html" column. This patch fixes this problem by fetching the actual column list first when all fields are to be shown, and using that field list as base for all rows.
Enable drivers in this directory like this:
<?php
function adminer_object() {
include "./plugins/drivers/simpledb.php"; // the driver is enabled just by including
return new Adminer\Adminer; // or return AdminerPlugin if you want to use other plugins
}
// include original Adminer
include "./adminer.php";
?>