Skip to content

Commit

Permalink
Use lowercase normalizer in mapping of 'caption'
Browse files Browse the repository at this point in the history
To fix alephdata#2022, sorting of documents in an investigation or dataset by name should be case-insensitive
  • Loading branch information
richardfoodsteps committed Dec 16, 2024
1 parent 96c0492 commit 75cefcf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aleph/index/indexes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 75cefcf

Please sign in to comment.