diff --git a/lucene/benchmark/conf/english-porter-comparison.alg b/lucene/benchmark/conf/english-porter-comparison.alg index 51de5ece7a7..682983c8a5d 100644 --- a/lucene/benchmark/conf/english-porter-comparison.alg +++ b/lucene/benchmark/conf/english-porter-comparison.alg @@ -48,4 +48,4 @@ docs.dir=reuters-out NewRound } : 5 -RepSumByName +RepSumByNameRound diff --git a/lucene/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/AnalyzerFactoryTask.java b/lucene/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/AnalyzerFactoryTask.java index d69fe64a413..856eab656de 100644 --- a/lucene/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/AnalyzerFactoryTask.java +++ b/lucene/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/AnalyzerFactoryTask.java @@ -376,6 +376,9 @@ public class AnalyzerFactoryTask extends PerfTask { instance.init(argMap); if (instance instanceof ResourceLoaderAware) { File baseDir = new File(getRunData().getConfig().get("work.dir", "work")).getAbsoluteFile(); + if ( ! baseDir.isDirectory()) { + baseDir = new File(".").getAbsoluteFile(); + } ((ResourceLoaderAware)instance).inform(new FilesystemResourceLoader(baseDir)); } if (CharFilterFactory.class.isAssignableFrom(clazz)) {