Added thumbnail generator

This commit is contained in:
simon987
2018-03-20 19:23:38 -04:00
parent 047d2653bc
commit 90c1de3362
10 changed files with 90 additions and 13 deletions

View File

@@ -53,9 +53,7 @@ class Indexer:
def index(self, docs: list, directory: int):
print("Indexing " + str(len(docs)) + " docs")
index_string = Indexer.create_bulk_index_string(docs, directory)
print("bulk-start")
self.es.bulk(body=index_string, index=self.index_name, doc_type="file", refresh="true")
print("bulk-done")
def clear(self):