Get the source of a document by its index, type and id.
