Skip to content

armgit / nutch

Public Imported from GitHub
0

Apache Nutch is an extensible and scalable web crawler

NUTCH-912 MoreIndexingFilter does not parse docx and xlsx date formats

Julien Nioche5e067e312146
diff --git a/CHANGES.txt b/CHANGES.txt
index d20b8a86b..52a2fa6e4 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -2,6 +2,8 @@ Nutch Change Log
Release 2.0 - Current Development
+* NUTCH-912 MoreIndexingFilter does not parse docx and xlsx date formats (Markus Jelsma, jnioche)
+
* NUTCH-936 LanguageIdentifier should not set empty lang field on NutchDocument (Markus Jelsma via jnioche)
* NUTCH-949 Conflicting ANT jars in classpath (jnioche)
diff --git a/src/plugin/index-more/src/java/org/apache/nutch/indexer/more/MoreIndexingFilter.java b/src/plugin/index-more/src/java/org/apache/nutch/indexer/more/MoreIndexingFilter.java
index 21cdd34ad..55706695a 100644
--- a/src/plugin/index-more/src/java/org/apache/nutch/indexer/more/MoreIndexingFilter.java
+++ b/src/plugin/index-more/src/java/org/apache/nutch/indexer/more/MoreIndexingFilter.java
@@ -126,7 +126,7 @@ public class MoreIndexingFilter implements IndexingFilter {
"yyyy-MM-dd HH:mm", "MMM dd yyyy HH:mm:ss. zzz",
"MMM dd yyyy HH:mm:ss zzz", "dd.MM.yyyy HH:mm:ss zzz",
"dd MM yyyy HH:mm:ss zzz", "dd.MM.yyyy; HH:mm:ss",
- "dd.MM.yyyy HH:mm:ss", "dd.MM.yyyy zzz" });
+ "dd.MM.yyyy HH:mm:ss", "dd.MM.yyyy zzz", "yyyy-MM-dd'T'HH:mm:ss'Z'" });
time = parsedDate.getTime();
// if (LOG.isWarnEnabled()) {
// LOG.warn(url + ": parsed date: " + date +" to:"+time);