List<OperationResult> results) {
List<String> failedIds = new ArrayList<String>();
Iterator<OperationResult> opIter = results.iterator();
Iterator<String> idIter = docIdList.iterator();
while (opIter.hasNext() && idIter.hasNext()) {
OperationResult result = opIter.next();
String docId = idIter.next();
if (!StatusCode.OK.equals(result.getCode())) {
failedIds.add(docId);
}
}
return failedIds;
}