Code cleanup

This commit is contained in:
simon987
2018-04-21 13:27:13 -04:00
parent 4eb9cf6b63
commit 87f35571fa
20 changed files with 811 additions and 856 deletions

View File

@@ -78,8 +78,14 @@ 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", "copy_to": "mime_kw"},
"mime_kw": {"type": "keyword"},
"mime": {"type": "keyword"},
"encoding": {"type": "keyword"},
"format_name": {"type": "keyword"},
"format_long_name": {"type": "keyword"},
"duration": {"type": "float"},
"width": {"type": "integer"},
"height": {"type": "integer"},
"mtime": {"type": "integer"},
"directory": {"type": "short"},
"name": {"analyzer": "my_nGram", "type": "text"},
"album": {"analyzer": "my_nGram", "type": "text"},