Skip to content

armgit / nutch

Public Imported from GitHub
0

Apache Nutch is an extensible and scalable web crawler

NUTCH-2093 Indexing filters to use current signatures

Markus Jelsmab349b8505726
diff --git a/CHANGES.txt b/CHANGES.txt
index 2bc86582f..3cffc57db 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -2,6 +2,8 @@ Nutch Change Log
Nutch Current Development 1.11-SNAPSHOT
+* NUTCH-2093 Indexing filters to use current signatures (markus)
+
* NUTCH-2092: Unit Test for NutchServer (Sujen Shah via mattmann)
* NUTCH-2096 Explicitly indicate broswer binary to use when selecting
diff --git a/src/java/org/apache/nutch/indexer/IndexerMapReduce.java b/src/java/org/apache/nutch/indexer/IndexerMapReduce.java
index 85b7d2efe..3641c112b 100644
--- a/src/java/org/apache/nutch/indexer/IndexerMapReduce.java
+++ b/src/java/org/apache/nutch/indexer/IndexerMapReduce.java
@@ -287,6 +287,9 @@ public class IndexerMapReduce extends Configured implements
final Parse parse = new ParseImpl(parseText, parseData);
try {
+ // Indexing filters may also be interested in the signature
+ fetchDatum.setSignature(dbDatum.getSignature());
+
// extract information from dbDatum and pass it to
// fetchDatum so that indexing filters can use it
final Text url = (Text) dbDatum.getMetaData().get(