appProp.setProperty("doc.maker.forever", "false");
Config config = new Config(appProp);
docMaker.setConfig(config);
HTMLParser htmlParser = (HTMLParser) Class.forName(config.get("html.parser","uk.ac.ucl.panda.applications.demo.DemoHTMLParser")).newInstance();
docMaker.setHTMLParser(htmlParser);
IndexWriter writer = new IndexWriter(indexDir,
new PorterStemAnalyzer(), true);
writer.setUseCompoundFile(false);