mirror of
https://github.com/vrana/adminer.git
synced 2026-02-07 07:10:21 +01:00
e9934624123cb78b3648175d69478e53b80e4380
1. Make values NULLable by default, so that empty values do not get submitted to the Elasticsearch server. This helps e.g. with empty date fields - Elasticsearch would try to convert the field type to string when the value is an empty string, but that fails when there are documents with properly filled date fields 2. Remove _id from the POST array because this is not allowed. The server fails if it is included with > mapper_parsing_exception: > Field [_id] is a metadata field and cannot be added inside a document. > Use the index API request parameters. 3. Use the correct URL to create a document: "$index/_doc/" and "$index/_doc/$id". This is the same for ES 7 and 8: - https://www.elastic.co/guide/en/elasticsearch/reference/8.17/docs-index_.html#docs-index-api-request - https://www.elastic.co/guide/en/elasticsearch/reference/7.17/docs-index_.html#docs-index-api-request 4. Handle failed creations by checking for false 5. Return the "result" property string instead of the non-existing "created" property.
Adminer - Database management in a single PHP file Adminer Editor - Data manipulation for end-users https://www.adminer.org/ Supports: MySQL, MariaDB, PostgreSQL, SQLite, MS SQL, Oracle, MongoDB, Elasticsearch (plugin), SimpleDB (plugin), Firebird (plugin), ClickHouse (plugin) Requirements: PHP 5.3+ adminer/index.php - Run development version of Adminer editor/index.php - Run development version of Adminer Editor editor/example.php - Example customization plugins/readme.txt - Plugins for Adminer and Adminer Editor adminer/plugin.php - Plugin demo adminer/sqlite.php - Development version of Adminer with SQLite allowed editor/sqlite.php - Development version of Editor with SQLite allowed adminer/designs.php - Development version of Adminer with adminer.css switcher compile.php - Create a single file version lang.php - Update translations tests/katalon.html - Katalon Automation Recorder test suite If downloaded from Git then run: git submodule update --init
Languages
PHP
68.1%
CSS
22.1%
HTML
7.6%
JavaScript
2.2%