From ce70f6e0772374a0c3a3229b466785b0ee9dd4ca Mon Sep 17 00:00:00 2001 From: Friedrich Lindenberg Date: Mon, 13 Feb 2023 14:16:51 +0100 Subject: [PATCH] add date format so kibana can alert on this --- yente/search/mapping.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yente/search/mapping.py b/yente/search/mapping.py index 3cf71286..53307497 100644 --- a/yente/search/mapping.py +++ b/yente/search/mapping.py @@ -8,7 +8,7 @@ MappingProperty = Dict[str, Union[List[str], str]] -DATE_FORMAT = "yyyy-MM-dd'T'HH||yyyy-MM-dd'T'HH:mm||yyyy-MM-dd'T'HH:mm:ss||yyyy-MM-dd||yyyy-MM||yyyy" +DATE_FORMAT = "yyyy-MM-dd'T'HH||yyyy-MM-dd'T'HH:mm||yyyy-MM-dd'T'HH:mm:ss||yyyy-MM-dd||yyyy-MM||yyyy||strict_date_optional_time" TEXT_TYPES = (registry.name, registry.address) INDEX_SETTINGS = { "analysis": {