From 75cefcf97603b99aee1874da5301d54218185631 Mon Sep 17 00:00:00 2001 From: Richard Sommerville <111354001+richardfoodsteps@users.noreply.github.com> Date: Mon, 16 Dec 2024 17:58:10 +0000 Subject: [PATCH] Use lowercase normalizer in mapping of 'caption' To fix #2022, sorting of documents in an investigation or dataset by name should be case-insensitive --- aleph/index/indexes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aleph/index/indexes.py b/aleph/index/indexes.py index b6d0128392..26c2b81d76 100644 --- a/aleph/index/indexes.py +++ b/aleph/index/indexes.py @@ -85,7 +85,7 @@ def configure_schema(schema, version): "dynamic": False, "_source": {"excludes": ["text", "fingerprints"]}, "properties": { - "caption": KEYWORD, + "caption": {"type": "keyword", "normalizer": "lowercase"}, "schema": KEYWORD, "schemata": KEYWORD, registry.entity.group: KEYWORD,