averbis / averbis-python-api

Conveniently access the REST API of Averbis products using Python
Apache License 2.0
12 stars 4 forks source link

`import_documents` overwrites documents by assigning the same ID to all uploaded strings #118

Closed DavidHuebner closed 2 years ago

DavidHuebner commented 2 years ago

Describe the bug When using document_collection.import_documents() with a string as an argument, we assign the same default_filename to all uploaded strings. This leads to a replacement of the documents when called repeatedly.

To Reproduce Steps to reproduce the behavior:

  1. Call document_collection.import_documents("First text") and document_collection.import_documents("Second text")
  2. There will only be one document in the collection, the second one.

Expected behavior I want to have both documents in the collection. In case of using import_documents with a string, the user should be forced to provide a filename that serves as an id.

Error message None

Please complete the following information: