BasicSinglePassIndexer _indexer;
if (ApplicationSetup.BLOCK_INDEXING)
_indexer = new BlockSinglePassIndexer(ApplicationSetup.TERRIER_INDEX_PATH, ApplicationSetup.TERRIER_INDEX_PREFIX);
else
_indexer = new BasicSinglePassIndexer(ApplicationSetup.TERRIER_INDEX_PATH, ApplicationSetup.TERRIER_INDEX_PREFIX);
_indexer.index(new Collection[] {collectionTREC});
long endTimestamp = System.currentTimeMillis();
System.err.println("Finished building the inverted index...");
double seconds = (endTimestamp - beginTimestamp) / 1000.0d;
System.err.println("Time elapsed for inverted file: " + seconds);
try{