Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

higher resolution is required here so changes to files are detected even if file dates differ by less than a minute

Daniel Naberd51c0dee0756
diff --git a/src/demo/org/apache/lucene/demo/HTMLDocument.java b/src/demo/org/apache/lucene/demo/HTMLDocument.java
index 38fc50586f7..7e9145bd5fc 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.MINUTE);
+ DateTools.timeToString(f.lastModified(), DateTools.Resolution.SECOND);
}
public static String uid2url(String uid) {