mirror of https://github.com/apache/lucene.git
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:
parent
0606e8b2dd
commit
0e708a21fe
|
@ -97,7 +97,8 @@ public class CreateIndexTask extends PerfTask {
|
|||
Config config = runData.getConfig();
|
||||
IndexWriter writer = new IndexWriter(runData.getDirectory(),
|
||||
runData.getConfig().get("autocommit", OpenIndexTask.DEFAULT_AUTO_COMMIT),
|
||||
runData.getAnalyzer());
|
||||
runData.getAnalyzer(),
|
||||
true);
|
||||
CreateIndexTask.setIndexWriterConfig(writer, config);
|
||||
runData.setIndexWriter(writer);
|
||||
return 1;
|
||||
|
|
Loading…
Reference in New Issue