1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-12 17:44:07 +02:00

Elastic: Fix text search on boolean fields

When searching in all fields for a text value, an error was thrown
with ElasticSearch 7.17.23 when the index contains boolean fields:

> query_shard_exception: failed to create query:
> Can't parse boolean value [textvalue], expected [true] or [false]

This patch fixes that problem by skipping boolean fields when the
search word is not the string "true" or "false".
This commit is contained in:
Christian Weiske
2025-02-28 14:32:23 +01:00
committed by Jakub Vrana
parent 4967a40410
commit d5a17835ff
2 changed files with 11 additions and 0 deletions

View File

@@ -18,6 +18,7 @@ MS SQL: Remove support for MSSQL extension
MS SQL: Add support for PDO_SQLSRV extension
MS SQL: Link help from sys tables
MongoDB: Remove support for deprecated extension mongo
Elasticsearch: Fix text search on boolean fields
Adminer 4.17.1 (released 2025-02-25):
MySQL: Fix typo in the date type (regression from 4.17.0)