Get the next document from the data source.
true if a document was obtained, or false if there are no more documents to process.