From c9da6b57d031884c69e57c3b47b20cf108d54a78 Mon Sep 17 00:00:00 2001 From: Rowan Seymour Date: Thu, 7 Apr 2022 09:32:04 -0500 Subject: [PATCH] Ignore malformed field value numbers --- indexers/contacts.settings.json | 3 ++- testdb.sql | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/indexers/contacts.settings.json b/indexers/contacts.settings.json index 2dcfdd7..6778fac 100644 --- a/indexers/contacts.settings.json +++ b/indexers/contacts.settings.json @@ -108,7 +108,8 @@ }, "number": { "type": "scaled_float", - "scaling_factor": 10000 + "scaling_factor": 10000, + "ignore_malformed": true }, "datetime": { "type": "date" diff --git a/testdb.sql b/testdb.sql index 8e72d88..c34ac70 100644 --- a/testdb.sql +++ b/testdb.sql @@ -98,7 +98,7 @@ INSERT INTO contacts_contact(id, is_active, created_by_id, created_on, modified_ ( 4, TRUE, -1, '2015-03-27 07:39:28.955051+00', -1, '2015-03-27 07:39:28.955051+00', '2015-12-31 23:59', 1, 'A', 'John Doe', NULL, '51762bba-01a2-4c4e-b5cd-b182d0405cd4', - '{ "e0eac267-463a-4c00-9732-cab62df07b16": { "text": "2030-04-06T18:37:59+00:00", "datetime": "2030-04-06T18:37:59+00:00"}}', + '{ "05bca1cd-e322-4837-9595-86d0d85e5adb": {"text": "8888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888", "number": 8888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888 }, "e0eac267-463a-4c00-9732-cab62df07b16": { "text": "2030-04-06T18:37:59+00:00", "datetime": "2030-04-06T18:37:59+00:00"}}', 0, 2 ),