pass metadata to extract_text
This commit is contained in:
parent
27a338abf5
commit
979775ac72
@ -68,7 +68,7 @@ class ExternalStoreTask(Task):
|
|||||||
# get the document
|
# get the document
|
||||||
doc = self.client.db.tracked.find_one({'_id': ObjectId(doc_id)})
|
doc = self.client.db.tracked.find_one({'_id': ObjectId(doc_id)})
|
||||||
filedata = self.client.get_version(doc['url']).read()
|
filedata = self.client.get_version(doc['url']).read()
|
||||||
text = extract_text(filedata)
|
text = extract_text(filedata, doc['metadata'])
|
||||||
|
|
||||||
# put the document into the data store
|
# put the document into the data store
|
||||||
result = self.upload_document(doc_id, text, doc['metadata'])
|
result = self.upload_document(doc_id, text, doc['metadata'])
|
||||||
|
Loading…
Reference in New Issue
Block a user