Commit 223d0d09 authored by Alfredo Di Napoli's avatar Alfredo Di Napoli

Add addDocumentsToHyperCorpus function

This commit refactors the codebase to add a new function called
`addDocumentsToHyperCorpus` which generalises the common pattern of
calling `insertMasterDocs` and later adding the documents via the DB
`Doc` functions.

It also "lowers" some functions to run into a plain `DBCmd`.
parent 0cc0f9e6
Pipeline #4556 failed with stages
in 37 minutes and 20 seconds