if ((currentTS - lastTS) >= flushInterval || batchedUpdates >= batchSize){ req.process(solr); req.clear(); lastTS = currentTS;
if ((currentTS - lastTS) >= flushInterval || batchedUpdates >= batchSize){ req.process(solr); req.clear(); lastTS = currentTS;