diff --git a/src/com/mcplusa/google/feeder/GSAContentItem.java b/src/com/mcplusa/google/feeder/GSAContentItem.java index bc85c13..2da6b19 100644 --- a/src/com/mcplusa/google/feeder/GSAContentItem.java +++ b/src/com/mcplusa/google/feeder/GSAContentItem.java @@ -15,6 +15,8 @@ public class GSAContentItem { protected String url = ""; + //Set to true because why would you not want the GSA to immediately crawl? + protected boolean crawlImmediately = true; protected String display_url = ""; protected String mimetype = ""; protected String content = ""; @@ -35,6 +37,16 @@ public String getUrl() return url; } + public boolean isCrawlImmediately() + { + return crawlImmediately; + } + + public void setCrawlImmediately(boolean crawlImmediately) + { + this.crawlImmediately = crawlImmediately; + } + public void setDisplayUrl(String newDisplayUrl) { display_url = newDisplayUrl; } diff --git a/src/com/mcplusa/google/feeder/GSAFeed.java b/src/com/mcplusa/google/feeder/GSAFeed.java index 1d300d2..38b0a2b 100644 --- a/src/com/mcplusa/google/feeder/GSAFeed.java +++ b/src/com/mcplusa/google/feeder/GSAFeed.java @@ -156,6 +156,14 @@ public void AddRecord(GSAContentItem item) { if (item.getHasLastModified()) { recordNode.setAttribute("last-modified", item.getLastModifiedUTC()); } + + if (item.isCrawlImmediately()) { + recordNode.setAttribute("crawl-immediately", "true" ); + } else { + recordNode.setAttribute("crawl-immediately", "false" ); + } + + recordNode.setAttribute("authmethod", item.getAuthMethod()); if (item.getAcl() != null) {