final LineIterator it = FileUtils.lineIterator(BNB_PATH);
while (it.hasNext()) {
final String id = Integer.toString(counter++);
final String content = (String) it.next();
logger.info("Indexing document {}", id);
indexer.addDocument(id, content);
}
LineIterator.closeQuietly(it);
logger.info("Commiting all pending documents");
indexer.commit();
}