Skip to content

Apache Lucene open-source search software

Benchmark module: Fix obsolete reference to 'doc.maker.forever' (it's actually 'content.source.forever')

David Wayne Smileyd0ff9d15c9f5
diff --git a/lucene/benchmark/src/java/org/apache/lucene/benchmark/byTask/package.html b/lucene/benchmark/src/java/org/apache/lucene/benchmark/byTask/package.html
index dc9412fa6e4..147d2e23dc8 100644
--- a/lucene/benchmark/src/java/org/apache/lucene/benchmark/byTask/package.html
+++ b/lucene/benchmark/src/java/org/apache/lucene/benchmark/byTask/package.html
@@ -230,7 +230,7 @@ The following is an informal description of the supported syntax.
without iterating over the same file again, especially when the exact
number of documents is not known in advance. For instance, TREC files extracted
from a zip file. Note: when using this, you must also set
- <font color="#FF0066">doc.maker.forever</font> to false.
+ <font color="#FF0066">content.source.forever</font> to false.
<br>Example - <font color="#FF0066">{ AddDoc } : *</font> - would add docs
until the doc maker is "exhausted".
</li>
diff --git a/lucene/benchmark/src/test/org/apache/lucene/benchmark/byTask/feeds/TrecContentSourceTest.java b/lucene/benchmark/src/test/org/apache/lucene/benchmark/byTask/feeds/TrecContentSourceTest.java
index d3c55388b78..3d2322db4e6 100644
--- a/lucene/benchmark/src/test/org/apache/lucene/benchmark/byTask/feeds/TrecContentSourceTest.java
+++ b/lucene/benchmark/src/test/org/apache/lucene/benchmark/byTask/feeds/TrecContentSourceTest.java
@@ -350,8 +350,7 @@ public class TrecContentSourceTest extends LuceneTestCase {
props.setProperty("print.props", "false");
props.setProperty("content.source.verbose", "false");
props.setProperty("content.source.excludeIteration", "true");
- props.setProperty("doc.maker.forever", "false");
- props.setProperty("docs.dir", dataDir.toRealPath().toString().replace('\\','/'));
+ props.setProperty("docs.dir", dataDir.toRealPath().toString().replace('\\','/'));
props.setProperty("trec.doc.parser", TrecParserByPath.class.getName());
props.setProperty("content.source.forever", "false");
tcs.setConfig(new Config(props));