From 0e708a21fec513177ed5d627ca227de955639ce7 Mon Sep 17 00:00:00 2001 From: Michael McCandless Date: Thu, 25 Sep 2008 14:11:41 +0000 Subject: [PATCH] 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 --- .../apache/lucene/benchmark/byTask/tasks/CreateIndexTask.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/CreateIndexTask.java b/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/CreateIndexTask.java index d1d716bfeb7..72ec92e1164 100644 --- a/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/CreateIndexTask.java +++ b/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/CreateIndexTask.java @@ -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;