Missing records when using BulkProcessor (Java High Level Rest Client)

Are you sure that you are not sending documents with the same id? indexDetails.getDocumentId() can have duplicates?