changed logic to only retry the documents that failed

this should eliminate the errors in the log about version conflicts