Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
fix get fresh_date_dt to allow returned value to be date in future
reger431311df4282
diff --git a/source/net/yacy/kelondro/data/meta/URIMetadataNode.java b/source/net/yacy/kelondro/data/meta/URIMetadataNode.javaindex c7dacc618..8f603fe6e 100644--- a/source/net/yacy/kelondro/data/meta/URIMetadataNode.java+++ b/source/net/yacy/kelondro/data/meta/URIMetadataNode.java@@ -322,8 +322,17 @@ public class URIMetadataNode extends SolrDocument {return getDate(CollectionSchema.load_date_dt);}+ /**+ * Get calculated date until resource shall be considered as fresh+ * this may be a date in future+ *+ * @return Date initally calculated to (loaddate + (loaddate - lastmodified)/2)+ */public Date freshdate() {- return getDate(CollectionSchema.fresh_date_dt);+ // getDate() can't be used as it checks for date <= now+ Date x = (Date) this.getFieldValue(CollectionSchema.fresh_date_dt.getSolrFieldName());+ if (x == null) return new Date(0);+ return x;}public String md5() {