mirror of
https://github.com/simon987/Simple-Incremental-Search-Tool.git
synced 2025-12-13 23:29:04 +00:00
Code cleanup
This commit is contained in:
10
indexer.py
10
indexer.py
@@ -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"},
|
||||
|
||||
Reference in New Issue
Block a user