code: public void addResult(final BulkWriteResult result, final IndexMap indexMap) {
          insertedCount += result.getInsertedCount();
          matchedCount += result.getMatchedCount();
          deletedCount += result.getDeletedCount();
          modifiedCount += result.getModifiedCount();
          mergeUpserts(result.getUpserts(), indexMap);
      }
docs: Add a result
  
  @param result   the result
  @param indexMap the index map