Skip to content

Commit

Permalink
remove obsolete lastmodified calculation in WebgraphConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
reger committed Jan 17, 2017
1 parent 5c8958b commit 581b00c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions source/net/yacy/search/schema/WebgraphConfiguration.java
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -143,8 +143,6 @@ public SolrInputDocument getEdge(
add(edge, WebgraphSchema.target_order_i, target_order); add(edge, WebgraphSchema.target_order_i, target_order);
if (allAttr || contains(WebgraphSchema.load_date_dt)) { if (allAttr || contains(WebgraphSchema.load_date_dt)) {
Date loadDate = new Date(); Date loadDate = new Date();
Date modDate = responseHeader == null ? new Date() : responseHeader.lastModified();
if (modDate.getTime() > loadDate.getTime()) modDate = loadDate;
add(edge, WebgraphSchema.load_date_dt, loadDate); add(edge, WebgraphSchema.load_date_dt, loadDate);
} }
if (allAttr || contains(WebgraphSchema.last_modified)) add(edge, WebgraphSchema.last_modified, responseHeader == null ? new Date() : responseHeader.lastModified()); if (allAttr || contains(WebgraphSchema.last_modified)) add(edge, WebgraphSchema.last_modified, responseHeader == null ? new Date() : responseHeader.lastModified());
Expand Down

0 comments on commit 581b00c

Please sign in to comment.