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 2013/06/20 00:22:00 UTC
svn commit: r1494785 -
/nutch/trunk/src/plugin/index-more/src/java/org/apache/nutch/indexer/more/MoreIndexingFilter.java
Author: snagel
Date: Wed Jun 19 22:22:00 2013
New Revision: 1494785
URL: http://svn.apache.org/r1494785
Log:
NUTCH-1475 (fix after fix) fill field "date" with fetch time (as before) if modified time is unset
Modified:
nutch/trunk/src/plugin/index-more/src/java/org/apache/nutch/indexer/more/MoreIndexingFilter.java
Modified: nutch/trunk/src/plugin/index-more/src/java/org/apache/nutch/indexer/more/MoreIndexingFilter.java
URL: http://svn.apache.org/viewvc/nutch/trunk/src/plugin/index-more/src/java/org/apache/nutch/indexer/more/MoreIndexingFilter.java?rev=1494785&r1=1494784&r2=1494785&view=diff
==============================================================================
--- nutch/trunk/src/plugin/index-more/src/java/org/apache/nutch/indexer/more/MoreIndexingFilter.java (original)
+++ nutch/trunk/src/plugin/index-more/src/java/org/apache/nutch/indexer/more/MoreIndexingFilter.java Wed Jun 19 22:22:00 2013
@@ -105,7 +105,7 @@ public class MoreIndexingFilter implemen
if (time == -1) { // if no last-modified specified in HTTP header
time = datum.getModifiedTime(); // use value in CrawlDatum
if (time <= 0) { // if also unset
- time = new Date().getTime(); // use current time
+ time = datum.getFetchTime(); // use time the fetch took place (fetchTime of fetchDatum)
}
}