From 4e5de730c5e7c54cd0e9bae7b03e8f3db6d5218a Mon Sep 17 00:00:00 2001 From: "Maxence G. de Montauzan" Date: Sun, 12 Apr 2020 19:03:50 +0200 Subject: [PATCH] (mapping) Use three mappings file instead one unique --- mapping.albums.json | 27 +++++++++++++++++++++++++++ mapping.artists.json | 27 +++++++++++++++++++++++++++ mapping.json | 36 ------------------------------------ mapping.songs.json | 33 +++++++++++++++++++++++++++++++++ 4 files changed, 87 insertions(+), 36 deletions(-) create mode 100644 mapping.albums.json create mode 100644 mapping.artists.json delete mode 100644 mapping.json create mode 100644 mapping.songs.json diff --git a/mapping.albums.json b/mapping.albums.json new file mode 100644 index 0000000..c8b4990 --- /dev/null +++ b/mapping.albums.json @@ -0,0 +1,27 @@ +{ + "mappings" : { + "properties": { + "Artist": { + "type": "text", + "fields": { + "raw": {"type": "keyword"} + } + }, + "Album Artist": { + "type": "text", + "fields": { + "raw": {"type": "keyword"} + } + }, + "Album": { + "type": "text", + "fields": { + "raw": {"type": "keyword"} + } + }, + "Genre": { + "type": "keyword" + } + } + } +} diff --git a/mapping.artists.json b/mapping.artists.json new file mode 100644 index 0000000..c8b4990 --- /dev/null +++ b/mapping.artists.json @@ -0,0 +1,27 @@ +{ + "mappings" : { + "properties": { + "Artist": { + "type": "text", + "fields": { + "raw": {"type": "keyword"} + } + }, + "Album Artist": { + "type": "text", + "fields": { + "raw": {"type": "keyword"} + } + }, + "Album": { + "type": "text", + "fields": { + "raw": {"type": "keyword"} + } + }, + "Genre": { + "type": "keyword" + } + } + } +} diff --git a/mapping.json b/mapping.json deleted file mode 100644 index 9846e64..0000000 --- a/mapping.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "mappings" : { - "properties": { - "Artist": { - "type": "text", - "fields": { - "raw": {"type": "keyword"} - } - }, - "Album Artist": { - "type": "text", - "fields": { - "raw": {"type": "keyword"} - } - }, - "Album": { - "type": "text", - "fields": { - "raw": {"type": "keyword"} - } - }, - "Bit Rate": { - "type": "integer" - }, - "Genre": { - "type": "text", - "fields": { - "raw": {"type": "keyword"} - } - }, - "Kind": { - "type": "keyword" - } - } - } -} diff --git a/mapping.songs.json b/mapping.songs.json new file mode 100644 index 0000000..983c685 --- /dev/null +++ b/mapping.songs.json @@ -0,0 +1,33 @@ +{ + "mappings" : { + "properties": { + "Artist": { + "type": "text", + "fields": { + "raw": {"type": "keyword"} + } + }, + "Album Artist": { + "type": "text", + "fields": { + "raw": {"type": "keyword"} + } + }, + "Album": { + "type": "text", + "fields": { + "raw": {"type": "keyword"} + } + }, + "Bit Rate": { + "type": "integer" + }, + "Genre": { + "type": "keyword" + }, + "Kind": { + "type": "keyword" + } + } + } +}