diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2020-01-30 00:51:56 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2020-01-30 00:52:01 -0800 |
commit | b7404fb0f696807db3a92bc2c4c73c2d208e59ef (patch) | |
tree | e5b74f29fd183427543789ec512a31c6978518e8 /extra/elasticsearch/changelog_schema.json | |
parent | 59912583926077260d99a9bf77a938c2215eb6c8 (diff) | |
download | fatcat-b7404fb0f696807db3a92bc2c4c73c2d208e59ef.tar.gz fatcat-b7404fb0f696807db3a92bc2c4c73c2d208e59ef.zip |
ES schemas: make keywords case-insensitive by default
But not applying asciifolding; don't see any need to do so?
Diffstat (limited to 'extra/elasticsearch/changelog_schema.json')
-rw-r--r-- | extra/elasticsearch/changelog_schema.json | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/extra/elasticsearch/changelog_schema.json b/extra/elasticsearch/changelog_schema.json index 77c77238..d958fed9 100644 --- a/extra/elasticsearch/changelog_schema.json +++ b/extra/elasticsearch/changelog_schema.json @@ -8,6 +8,18 @@ "tokenizer": "standard", "filter": [ "lowercase", "asciifolding" ] } + }, + "normalizer": { + "default": { + "type": "custom", + "char_filter": [], + "filter": ["lowercase"] + }, + "caseSensitive": { + "type": "custom", + "char_filter": [], + "filter": [] + } } } } @@ -16,13 +28,13 @@ "changelog": { "properties": { "index": { "type": "integer" }, - "editgroup_id": { "type": "keyword", "doc_values": false }, + "editgroup_id": { "type": "keyword", "normalizer": "default", "doc_values": false }, "timestamp": { "type": "date" }, - "editor_id": { "type": "keyword" }, - "username": { "type": "keyword" }, + "editor_id": { "type": "keyword", "normalizer": "default" }, + "username": { "type": "keyword", "normalize": "caseSensitive" }, "is_bot": { "type": "boolean" }, "is_admin": { "type": "boolean" }, - "agent": { "type": "keyword" }, + "agent": { "type": "keyword", "normalize": "caseSensitive" }, "containers": { "type": "integer" }, "new_containers": { "type": "integer" }, |