Directory dir = getRunData().getDirectory();
Analyzer analyzer = getRunData().getAnalyzer();
IndexWriter iw = new IndexWriter(dir, analyzer, true);
Config config = getRunData().getConfig();
boolean cmpnd = config.get("compound",true);
int mrgf = config.get("merge.factor",10);
int mxbf = config.get("max.buffered",10);
iw.setUseCompoundFile(cmpnd);
iw.setMergeFactor(mrgf);
iw.setMaxBufferedDocs(mxbf);
getRunData().setIndexWriter(iw);
return 1;