(mapping) Use three mappings file instead one unique

This commit is contained in:
2020-04-12 19:03:50 +02:00
parent 9ca7888189
commit 4e5de730c5
4 changed files with 87 additions and 36 deletions

27
mapping.albums.json Normal file
View File

@@ -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"
}
}
}
}

27
mapping.artists.json Normal file
View File

@@ -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"
}
}
}
}

View File

@@ -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"
}
}
}
}

33
mapping.songs.json Normal file
View File

@@ -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"
}
}
}
}