@Test
public void testCreateIndex() throws IOException {
long s = System.nanoTime();
IndexWriterConfig conf = new IndexWriterConfig(LuceneVersionConstant.LUCENE_VERSION, new KeywordAnalyzer());
IndexDeletionPolicyReader indexDeletionPolicy = new IndexDeletionPolicyReader(
new KeepOnlyLastCommitDeletionPolicy());
conf.setIndexDeletionPolicy(indexDeletionPolicy);
FSDirectory control = FSDirectory.open(fileControl);
Directory dir = getControlDir(control, directory);
// The serial merge scheduler can be useful for debugging.
// conf.setMergeScheduler(new SerialMergeScheduler());