Initial commit (squashed)

This commit is contained in:
2019-09-27 22:56:07 -04:00
commit 564a17a8fa
75 changed files with 7518 additions and 0 deletions

85
schema/mappings.json Normal file
View File

@@ -0,0 +1,85 @@
{
"properties": {
"path": {
"type": "text",
"analyzer": "path_analyzer",
"copy_to": "suggest-path"
},
"suggest-path": {
"type": "completion",
"analyzer": "keyword"
},
"mime": {
"type": "keyword"
},
"videoc": {
"type": "keyword"
},
"audioc": {
"type": "keyword"
},
"duration": {
"type": "float"
},
"width": {
"type": "integer"
},
"height": {
"type": "integer"
},
"mtime": {
"type": "integer"
},
"size": {
"type": "long"
},
"index": {
"type": "keyword"
},
"name": {
"analyzer": "content_analyzer",
"type": "text",
"fields": {
"nGram": {
"type": "text",
"analyzer": "my_nGram"
}
}
},
"font_name": {
"analyzer": "my_nGram",
"type": "text"
},
"album": {
"analyzer": "my_nGram",
"type": "text"
},
"artist": {
"analyzer": "my_nGram",
"type": "text"
},
"title": {
"analyzer": "my_nGram",
"type": "text"
},
"genre": {
"analyzer": "my_nGram",
"type": "text"
},
"album_artist": {
"analyzer": "my_nGram",
"type": "text"
},
"content": {
"analyzer": "content_analyzer",
"type": "text",
"index_options": "offsets",
"fields": {
"nGram": {
"type": "text",
"analyzer": "my_nGram"
}
}
}
}
}

38
schema/settings.json Normal file
View File

@@ -0,0 +1,38 @@
{
"index": {
"refresh_interval": "-1",
"codec": "best_compression"
},
"analysis": {
"tokenizer": {
"path_tokenizer": {
"type": "path_hierarchy"
},
"my_nGram_tokenizer": {
"type": "nGram",
"min_gram": 3,
"max_gram": 3
}
},
"analyzer": {
"path_analyzer": {
"tokenizer": "path_tokenizer",
"filter": [
"lowercase"
]
},
"my_nGram": {
"tokenizer": "my_nGram_tokenizer",
"filter": [
"lowercase"
]
},
"content_analyzer": {
"tokenizer": "standard",
"filter": [
"lowercase"
]
}
}
}
}