Apache Lucene open-source search software
reduce date resolution from seconds to minutes, this should be enough for most cases
Daniel Naber55bfcc6d4785
diff --git a/src/demo/org/apache/lucene/demo/HTMLDocument.java b/src/demo/org/apache/lucene/demo/HTMLDocument.javaindex 7e9145bd5fc..38fc50586f7 100644--- a/src/demo/org/apache/lucene/demo/HTMLDocument.java+++ b/src/demo/org/apache/lucene/demo/HTMLDocument.java@@ -32,7 +32,7 @@ public class HTMLDocument {// separate the path from the date.return f.getPath().replace(dirSep, '\u0000') +"\u0000" +- DateTools.timeToString(f.lastModified(), DateTools.Resolution.SECOND);+ DateTools.timeToString(f.lastModified(), DateTools.Resolution.MINUTE);}public static String uid2url(String uid) {