diff --git a/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/feeds/EnwikiDocMaker.java b/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/feeds/EnwikiDocMaker.java
deleted file mode 100644
index d52ce07d363..00000000000
--- a/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/feeds/EnwikiDocMaker.java
+++ /dev/null
@@ -1,37 +0,0 @@
-package org.apache.lucene.benchmark.byTask.feeds;
-
-/**
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-import org.apache.lucene.benchmark.byTask.utils.Config;
-
-/**
- * A {@link DocMaker} which reads the English Wikipedia dump. Uses
- * {@link EnwikiContentSource} as its content source, regardless if a different
- * content source was defined in the configuration.
- * @deprecated Please use {@link DocMaker} instead, with content.source=EnwikiContentSource
- */
-public class EnwikiDocMaker extends DocMaker {
- @Override
- public void setConfig(Config config) {
- super.setConfig(config);
- // Override whatever content source was set in the config
- source = new EnwikiContentSource();
- source.setConfig(config);
- System.out.println("NOTE: EnwikiDocMaker is deprecated; please use DocMaker instead (which is the default if you don't specify doc.maker) with content.source=EnwikiContentSource");
- }
-}
diff --git a/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/feeds/LineDocMaker.java b/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/feeds/LineDocMaker.java
deleted file mode 100644
index 5c59625d785..00000000000
--- a/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/feeds/LineDocMaker.java
+++ /dev/null
@@ -1,49 +0,0 @@
-package org.apache.lucene.benchmark.byTask.feeds;
-
-/**
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-import org.apache.lucene.benchmark.byTask.utils.Config;
-
-/**
- * A DocMaker reading one line at a time as a Document from a single file. This
- * saves IO cost (over DirContentSource) of recursing through a directory and
- * opening a new file for every document. It also re-uses its Document and Field
- * instance to improve indexing speed.
- * The expected format of each line is (arguments are separated by <TAB>):
- * title, date, body. If a line is read in a different format, a
- * {@link RuntimeException} will be thrown. In general, you should use this doc
- * maker with files that were created with
- * {@link org.apache.lucene.benchmark.byTask.tasks.WriteLineDocTask}.
- *
- * Config properties:
- *
- * - doc.random.id.limit=N (default -1) -- create random docid in the range
- * 0..N; this is useful with UpdateDoc to test updating random documents; if
- * this is unspecified or -1, then docid is sequentially assigned
- *
- * @deprecated Please use {@link DocMaker} instead, with content.source=LineDocSource
- */
-public class LineDocMaker extends DocMaker {
- @Override
- public void setConfig(Config config) {
- super.setConfig(config);
- source = new LineDocSource();
- source.setConfig(config);
- System.out.println("NOTE: LineDocMaker is deprecated; please use DocMaker instead (which is the default if you don't specify doc.maker) with content.source=LineDocSource");
- }
-}
diff --git a/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/PerfTask.java b/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/PerfTask.java
index f7b39324ccd..a8b85ecf0e8 100644
--- a/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/PerfTask.java
+++ b/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/PerfTask.java
@@ -69,25 +69,6 @@ public abstract class PerfTask implements Cloneable {
name = name.substring(0, name.length() - 4);
}
}
-
- /**
- * @deprecated will be removed in 3.0. checks if there are any obsolete
- * settings, like doc.add.log.step and doc.delete.log.step and
- * alerts the user.
- */
- private void checkObsoleteSettings(Config config) {
- if (config.get("doc.add.log.step", null) != null) {
- throw new RuntimeException("doc.add.log.step is not supported anymore. " +
- "Use log.step.AddDoc and refer to CHANGES to read on the recent " +
- "API changes done to Benchmark's DocMaker and Task-based logging.");
- }
-
- if (config.get("doc.delete.log.step", null) != null) {
- throw new RuntimeException("doc.delete.log.step is not supported anymore. " +
- "Use log.step.DeleteDoc and refer to CHANGES to read on the recent " +
- "API changes done to Benchmark's DocMaker and Task-based logging.");
- }
- }
public PerfTask(PerfRunData runData) {
this();
@@ -114,7 +95,6 @@ public abstract class PerfTask implements Cloneable {
if (logStep <= 0) {
logStep = Integer.MAX_VALUE;
}
- checkObsoleteSettings(config);
}
@Override
diff --git a/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/ReadTask.java b/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/ReadTask.java
index 038e0d26ed5..7b77439328d 100644
--- a/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/ReadTask.java
+++ b/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/ReadTask.java
@@ -255,14 +255,6 @@ public abstract class ReadTask extends PerfTask {
return 0;
}
- /**
- * @deprecated Use {@link #getBenchmarkHighlighter(Query)}
- */
- final Highlighter getHighlighter(Query q) {
- // not called
- return null;
- }
-
/**
* Return an appropriate highlighter to be used with
* highlighting tasks
@@ -270,39 +262,6 @@ public abstract class ReadTask extends PerfTask {
protected BenchmarkHighlighter getBenchmarkHighlighter(Query q){
return null;
}
-
- /**
- * @return the maximum number of highlighter fragments
- * @deprecated Please define getBenchmarkHighlighter instead
- */
- final int maxNumFragments(){
- // not called -- we switched this method to final to
- // force any external subclasses to cutover to
- // getBenchmarkHighlighter instead
- return 10;
- }
-
- /**
- *
- * @return true if the highlighter should merge contiguous fragments
- * @deprecated Please define getBenchmarkHighlighter instead
- */
- final boolean isMergeContiguousFragments(){
- // not called -- we switched this method to final to
- // force any external subclasses to cutover to
- // getBenchmarkHighlighter instead
- return false;
- }
-
- /**
- * @deprecated Please define getBenchmarkHighlighter instead
- */
- final int doHighlight(TokenStream ts, String text, Highlighter highlighter, boolean mergeContiguous, int maxFragments) throws IOException, InvalidTokenOffsetsException {
- // not called -- we switched this method to final to
- // force any external subclasses to cutover to
- // getBenchmarkHighlighter instead
- return 0;
- }
protected Sort getSort() {
return null;
diff --git a/contrib/benchmark/src/java/org/apache/lucene/benchmark/utils/ExtractWikipedia.java b/contrib/benchmark/src/java/org/apache/lucene/benchmark/utils/ExtractWikipedia.java
index 75f68a65ef0..07fcab35c7f 100644
--- a/contrib/benchmark/src/java/org/apache/lucene/benchmark/utils/ExtractWikipedia.java
+++ b/contrib/benchmark/src/java/org/apache/lucene/benchmark/utils/ExtractWikipedia.java
@@ -23,7 +23,6 @@ import java.io.IOException;
import java.util.Properties;
import org.apache.lucene.benchmark.byTask.feeds.DocMaker;
-import org.apache.lucene.benchmark.byTask.feeds.EnwikiDocMaker;
import org.apache.lucene.benchmark.byTask.feeds.NoMoreDataException;
import org.apache.lucene.benchmark.byTask.utils.Config;
import org.apache.lucene.document.Document;
@@ -125,16 +124,16 @@ public class ExtractWikipedia {
}
}
- DocMaker docMaker = new EnwikiDocMaker();
+ DocMaker docMaker = new DocMaker();
Properties properties = new Properties();
-
+ properties.setProperty("content.source", "org.apache.lucene.benchmark.byTask.feeds.EnwikiContentSource");
properties.setProperty("docs.file", wikipedia.getAbsolutePath());
properties.setProperty("content.source.forever", "false");
properties.setProperty("keep.image.only.docs", String.valueOf(keepImageOnlyDocs));
docMaker.setConfig(new Config(properties));
docMaker.resetInputs();
if (wikipedia != null && wikipedia.exists()) {
- System.out.println("Extracting Wikipedia to: " + outputDir + " using EnwikiDocMaker");
+ System.out.println("Extracting Wikipedia to: " + outputDir + " using EnwikiContentSource");
outputDir.mkdirs();
ExtractWikipedia extractor = new ExtractWikipedia(docMaker, outputDir);
extractor.extract();
@@ -145,9 +144,8 @@ public class ExtractWikipedia {
private static void printUsage() {
System.err.println("Usage: java -cp <...> org.apache.lucene.benchmark.utils.ExtractWikipedia --input|-i " +
- "[--output|-o