Skip to content

armgit / nutch

Public Imported from GitHub
0

Apache Nutch is an extensible and scalable web crawler

NUTCH-633 - ParseSegment no longer allow reparsing.

Tacettin Guneyf789eab53b6d
diff --git a/CHANGES.txt b/CHANGES.txt
index 074e2e3b4..ac2b5877b 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -271,6 +271,9 @@ Unreleased changes (1.0-dev)
99. NUTCH-375 - Add support for Content-Encoding: deflated
(Pascal Beis, ab)
+100. NUTCH-633 - ParseSegment no longer allow reparsing.
+ (dogacan)
+
Release 0.9 - 2007-04-02
1. Changed log4j confiquration to log to stdout on commandline
diff --git a/src/java/org/apache/nutch/fetcher/Fetcher.java b/src/java/org/apache/nutch/fetcher/Fetcher.java
index bb1b1deea..990770b89 100644
--- a/src/java/org/apache/nutch/fetcher/Fetcher.java
+++ b/src/java/org/apache/nutch/fetcher/Fetcher.java
@@ -346,13 +346,10 @@ public class Fetcher extends Configured implements Tool, MapRunnable<WritableCom
}
}
- if (!parsing) {
- /* Store status code in content if we are not parsing in fetcher.
- * So we can read this value during parsing (as a separate job) and
- * decide to parse or not.
- * */
- content.getMetadata().add(Nutch.FETCH_STATUS_KEY, Integer.toString(status));
- }
+ /* Store status code in content So we can read this value during
+ * parsing (as a separate job) and decide to parse or not.
+ */
+ content.getMetadata().add(Nutch.FETCH_STATUS_KEY, Integer.toString(status));
}
try {
diff --git a/src/java/org/apache/nutch/fetcher/Fetcher2.java b/src/java/org/apache/nutch/fetcher/Fetcher2.java
index ea429f612..b4a2ba1cd 100644
--- a/src/java/org/apache/nutch/fetcher/Fetcher2.java
+++ b/src/java/org/apache/nutch/fetcher/Fetcher2.java
@@ -751,13 +751,10 @@ public class Fetcher2 extends Configured implements
}
}
- if (!parsing) {
- /* Store status code in content if we are not parsing in fetcher.
- * So we can read this value during parsing (as a separate job) and
- * decide to parse or not.
- * */
- content.getMetadata().add(Nutch.FETCH_STATUS_KEY, Integer.toString(status));
- }
+ /* Store status code in content So we can read this value during
+ * parsing (as a separate job) and decide to parse or not.
+ */
+ content.getMetadata().add(Nutch.FETCH_STATUS_KEY, Integer.toString(status));
}
try {