w.append(row + "\n");
w.close();
Index index = Index.createNewIndex(folder.newFolder("index").toString(), "data");
index.setIndexProperty("num.Documents", ""+docnos.length);
IndexUtil.forceStructure(index, "meta", new ArrayMetaIndex(docnos));
Logger.getRootLogger().setLevel(Level.ALL);
Matching rtr = new TRECResultsMatching(index, tmpFile.toString());
return rtr;
}