Apache Nutch is an extensible and scalable web crawler
NUTCH-1684 ParseMeta to be added before fetch schedulers are run
Markus Jelsmad38220032503
diff --git a/CHANGES.txt b/CHANGES.txtindex 7dd861a25..fa6a287f6 100644--- a/CHANGES.txt+++ b/CHANGES.txt@@ -2,6 +2,8 @@ Nutch Change LogNutch Current Development 1.11-SNAPSHOT+* NUTCH-1684 ParseMeta to be added before fetch schedulers are run (markus)+* NUTCH-2038 fix for NUTCH-2038: Naive Bayes classifier based html Parse filter (for filtering outlinks)(Asitang Mishra, snagel via mattmann)diff --git a/src/java/org/apache/nutch/crawl/CrawlDbReducer.java b/src/java/org/apache/nutch/crawl/CrawlDbReducer.javaindex f189cc371..1ae73b8bf 100644--- a/src/java/org/apache/nutch/crawl/CrawlDbReducer.java+++ b/src/java/org/apache/nutch/crawl/CrawlDbReducer.java@@ -209,6 +209,13 @@ public class CrawlDbReducer implementscase CrawlDatum.STATUS_FETCH_REDIR_TEMP: // successful fetch, redirectedcase CrawlDatum.STATUS_FETCH_REDIR_PERM:case CrawlDatum.STATUS_FETCH_NOTMODIFIED: // successful fetch, notmodified+ // https://issues.apache.org/jira/browse/NUTCH-1656+ if (metaFromParse != null) {+ for (Entry<Writable, Writable> e : metaFromParse.entrySet()) {+ result.getMetaData().put(e.getKey(), e.getValue());+ }+ }+// determine the modification statusint modified = FetchSchedule.STATUS_UNKNOWN;if (fetch.getStatus() == CrawlDatum.STATUS_FETCH_NOTMODIFIED) {@@ -260,13 +267,6 @@ public class CrawlDbReducer implementsresult.setSignature(signature);}- // https://issues.apache.org/jira/browse/NUTCH-1656- if (metaFromParse != null) {- for (Entry<Writable, Writable> e : metaFromParse.entrySet()) {- result.getMetaData().put(e.getKey(), e.getValue());- }- }-// if fetchInterval is larger than the system-wide maximum, trigger// an unconditional recrawl. This prevents the page to be stuck at// NOTMODIFIED state, when the old fetched copy was already removed with