return document ID along with all documents