Get the source of a document by it's index, type and id.