LUCENE-1401: fix accidentally lost 'create=true' in CreateIndexTask

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@698975 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael McCandless 2008-09-25 14:11:41 +00:00
parent 0606e8b2dd
commit 0e708a21fe
1 changed files with 2 additions and 1 deletions

View File

@ -97,7 +97,8 @@ public class CreateIndexTask extends PerfTask {
Config config = runData.getConfig(); Config config = runData.getConfig();
IndexWriter writer = new IndexWriter(runData.getDirectory(), IndexWriter writer = new IndexWriter(runData.getDirectory(),
runData.getConfig().get("autocommit", OpenIndexTask.DEFAULT_AUTO_COMMIT), runData.getConfig().get("autocommit", OpenIndexTask.DEFAULT_AUTO_COMMIT),
runData.getAnalyzer()); runData.getAnalyzer(),
true);
CreateIndexTask.setIndexWriterConfig(writer, config); CreateIndexTask.setIndexWriterConfig(writer, config);
runData.setIndexWriter(writer); runData.setIndexWriter(writer);
return 1; return 1;