You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nutch.apache.org by sn...@apache.org on 2023/03/06 10:45:17 UTC
[nutch] branch master updated: NUTCH-2982 Generator: parameter for URL normalization not passed forward - pass forward params `norm` and `maxNumSegments` - fix typos in Javadoc
This is an automated email from the ASF dual-hosted git repository.
snagel pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nutch.git
The following commit(s) were added to refs/heads/master by this push:
new ef2949691 NUTCH-2982 Generator: parameter for URL normalization not passed forward - pass forward params `norm` and `maxNumSegments` - fix typos in Javadoc
ef2949691 is described below
commit ef29496915d2c230466412d99ac4236a8e647932
Author: Sebastian Nagel <sn...@apache.org>
AuthorDate: Fri Feb 17 16:12:26 2023 +0100
NUTCH-2982 Generator: parameter for URL normalization not passed forward
- pass forward params `norm` and `maxNumSegments`
- fix typos in Javadoc
---
src/java/org/apache/nutch/crawl/Generator.java | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/java/org/apache/nutch/crawl/Generator.java b/src/java/org/apache/nutch/crawl/Generator.java
index 8a2f87ba4..8e085428d 100644
--- a/src/java/org/apache/nutch/crawl/Generator.java
+++ b/src/java/org/apache/nutch/crawl/Generator.java
@@ -750,7 +750,7 @@ public class Generator extends NutchTool implements Tool {
* @param curTime
* Current time in milliseconds
* @param filter whether to apply filtering operation
- * @param norm whether to apply normilization operation
+ * @param norm whether to apply normalization operation
* @param force if true, and the target lockfile exists, consider it valid. If false
* and the target file exists, throw an IOException.
* @param maxNumSegments maximum number of segments to generate
@@ -768,8 +768,8 @@ public class Generator extends NutchTool implements Tool {
long curTime, boolean filter, boolean norm, boolean force,
int maxNumSegments, String expr)
throws IOException, InterruptedException, ClassNotFoundException {
- return generate(dbDir, segments, numLists, topN, curTime, filter, true,
- force, 1, expr, null);
+ return generate(dbDir, segments, numLists, topN, curTime, filter, norm,
+ force, maxNumSegments, expr, null);
}
/**
@@ -789,7 +789,7 @@ public class Generator extends NutchTool implements Tool {
* @param curTime
* Current time in milliseconds
* @param filter whether to apply filtering operation
- * @param norm whether to apply normilization operation
+ * @param norm whether to apply normalization operation
* @param force if true, and the target lockfile exists, consider it valid. If false
* and the target file exists, throw an IOException.
* @param maxNumSegments maximum number of segments to generate