Mime select (UI only)

This commit is contained in:
simon987
2018-04-15 13:46:44 -04:00
parent 60bd822025
commit 6c7d01dbcb
11 changed files with 545 additions and 364 deletions

View File

@@ -78,7 +78,8 @@ class Indexer:
self.es.indices.put_mapping(body={"properties": {
"path": {"type": "text", "analyzer": "path_analyser", "copy_to": "suggest-path"},
"suggest-path": {"type": "completion", "analyzer": "keyword"},
"mime": {"type": "text", "analyzer": "path_analyser"},
"mime": {"type": "text", "analyzer": "path_analyser", "copy_to": "mime_kw"},
"mime_kw": {"type": "keyword"},
"directory": {"type": "keyword"},
"name": {"analyzer": "my_nGram", "type": "text"},
"album": {"analyzer": "my_nGram", "type": "text"},