From 9f652802ae22bba180407914f19a83374eda92d5 Mon Sep 17 00:00:00 2001 From: simon Date: Thu, 10 Feb 2022 11:47:14 +0700 Subject: [PATCH] add new mapping for subtitle index --- tubearchivist/home/src/es/index_mapping.json | 67 ++++++++++++++++++++ 1 file changed, 67 insertions(+) diff --git a/tubearchivist/home/src/es/index_mapping.json b/tubearchivist/home/src/es/index_mapping.json index 0ad6494..f30a82d 100644 --- a/tubearchivist/home/src/es/index_mapping.json +++ b/tubearchivist/home/src/es/index_mapping.json @@ -303,6 +303,73 @@ }, "number_of_replicas": "0" } + }, + { + "index_name": "subtitle", + "expected_map": { + "youtube_id": { + "type": "keyword" + }, + "title": { + "type": "text", + "fields": { + "keyword": { + "type": "keyword", + "ignore_above": 256, + "normalizer": "to_lower" + } + } + }, + "subtitle_fragment_id": { + "type": "keyword" + }, + "subtitle_channel": { + "type": "text", + "fields": { + "keyword": { + "type": "keyword", + "ignore_above": 256, + "normalizer": "to_lower" + } + } + }, + "subtitle_channel_id": { + "type": "keyword" + }, + "subtitle_start": { + "type": "text" + }, + "subtitle_end": { + "type": "text" + }, + "subtitle_last_refresh": { + "type": "date" + }, + "subtitle_index": { + "type" : "long" + }, + "subtitle_lang": { + "type": "keyword" + }, + "subtitle_source": { + "type": "keyword" + }, + "subtitle_line": { + "type" : "text", + "analyzer": "english" + } + }, + "expected_set": { + "analysis": { + "normalizer": { + "to_lower": { + "type": "custom", + "filter": ["lowercase"] + } + } + }, + "number_of_replicas": "0" + } } ] } \ No newline at end of file