puuuush
index auf doc_id feld sollte gehen
This commit is contained in:
@@ -82,7 +82,10 @@ def insert_data_mongo(id, filepath,pChunk):
|
||||
'filepath': filepath,
|
||||
'chunk_content': pChunk,
|
||||
}
|
||||
collection.insert_one(dokument)
|
||||
result = collection.insert_one(dokument)
|
||||
|
||||
if result.acknowledged:
|
||||
collection.create_index("doc_id")
|
||||
|
||||
def reload_files():
|
||||
# path = input("Please provider path to folder: ")
|
||||
|
||||
Reference in New Issue
Block a user