Added Media, Picture and Text file parsers

This commit is contained in:
simon987
2018-03-23 14:02:56 -04:00
parent b94fce4e0b
commit a8b5e0b76e
19 changed files with 613 additions and 25 deletions

View File

@@ -35,8 +35,6 @@ class Indexer:
Creates a insert string for sending to elasticsearch
"""
print("Creating bulk index string...")
result = ""
action_string = '{"index":{}}\n'
@@ -46,8 +44,6 @@ class Indexer:
result += action_string
result += json.dumps(doc) + "\n"
print(result)
return result
def index(self, docs: list, directory: int):