private Path createSingleDocIndex(String name, float inc, long time) throws Exception {
Path idx = new Path(root, name);
Path sub = new Path(idx, "part-0000");
Directory dir = FSDirectory.open(new File(sub.toString()));
IndexWriter writer = new IndexWriter(dir, new NutchDocumentAnalyzer(conf), true,
MaxFieldLength.UNLIMITED);
Document doc = makeDoc(name,
MD5Hash.digest("1").toString(),
"http://www.example.com/1",
1.0f + inc, time + 1);