List<?> list;
while ((list = rebuildSession.getNext(_batchSize)).size() > 0) {
h.bulkIndex(index, list);
}
h.await();
long seconds = (System.currentTimeMillis() - start) / 1000;
// logging
StringBuilder logMsg = new StringBuilder("finished indexing of ").append(h.getSucceeded())