Skip to content

intentionally Repeated calls to documentstore.writedocuments and updateindexes to incrementally load DB #3535

Discussion options

You must be logged in to vote

Hi @geoffreya, not sure if I understood you correctly. Of course, it is possible to call write_documents on the DocumentStores incrementally / more than once. Duplicity is checked based on the ID of a Document. If you don't provide an ID yourself, this ID will be generated based on the content field of a Document. There are three options on how we deal with duplicate Documents:

  • skip: Ignore the new duplicate documents (this means, the existing Document is kept in the DocumentStore while the new duplicate one is discarded.)
  • overwrite: Update any existing documents with the same ID when adding documents.
  • fail: An error is raised if the document ID of the document being added already exists.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by geoffreya
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants