From 29fe401f93c58e35ebcc031d4d590e6d0771d6e4 Mon Sep 17 00:00:00 2001 From: orbiter Date: Thu, 16 Sep 2010 23:00:07 +0000 Subject: [PATCH] - some layout and text enhancement for site crawl start - Quix0rs patch from http://forum.yacy-websuche.de/viewtopic.php?p=20839#p20839 (parts) git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@7163 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- htroot/AccessTracker_p.java | 7 +-- htroot/CrawlStart_p.html | 8 ++-- htroot/env/base.css | 1 + .../env/templates/submenuIndexCreate.template | 2 +- source/de/anomic/search/RankingProcess.java | 4 +- source/de/anomic/search/ResultFetcher.java | 3 +- .../de/anomic/server/serverAccessTracker.java | 46 ++++++++----------- source/de/anomic/server/serverSwitch.java | 4 +- 8 files changed, 37 insertions(+), 38 deletions(-) diff --git a/htroot/AccessTracker_p.java b/htroot/AccessTracker_p.java index f3c7af80b..8db723bd8 100644 --- a/htroot/AccessTracker_p.java +++ b/htroot/AccessTracker_p.java @@ -25,6 +25,7 @@ // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA import java.util.ArrayList; +import java.util.Collection; import java.util.ConcurrentModificationException; import java.util.Date; import java.util.Iterator; @@ -53,7 +54,7 @@ public class AccessTracker_p { private static SimpleDateFormat SimpleFormatter = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss", Locale.US); - private static final List listclone(final List m) { + private static final Collection listclone(final Collection m) { final List accessClone = new LinkedList(); try { accessClone.addAll(m); @@ -76,7 +77,7 @@ public class AccessTracker_p { if (page == 0) { final Iterator i = sb.accessHosts(); String host; - List access; + Collection access; int entCount = 0; try { while ((entCount < maxCount) && (i.hasNext())) { @@ -106,7 +107,7 @@ public class AccessTracker_p { if (page == 1) { String host = (post == null) ? "" : post.get("host", ""); int entCount = 0; - List access; + Collection access; Track entry; if (host.length() > 0) { access = sb.accessTrack(host); diff --git a/htroot/CrawlStart_p.html b/htroot/CrawlStart_p.html index 099b4317a..a679b4f4d 100644 --- a/htroot/CrawlStart_p.html +++ b/htroot/CrawlStart_p.html @@ -69,10 +69,10 @@ for new documents automatically. -
+
- full domain
- only sub-path of given url + load all files in domain
+ load only files in a sub-path of given url
@@ -85,7 +85,7 @@
-
allow '?' in path +
allow query-strings (urls with a '?' in the path)
diff --git a/htroot/env/base.css b/htroot/env/base.css index f023b0ce8..e7016b5cb 100644 --- a/htroot/env/base.css +++ b/htroot/env/base.css @@ -72,6 +72,7 @@ h3 { h4 { font-size:1.1em; + margin-bottom: 4px; } a:link { diff --git a/htroot/env/templates/submenuIndexCreate.template b/htroot/env/templates/submenuIndexCreate.template index 581f19419..d7b40e3a9 100644 --- a/htroot/env/templates/submenuIndexCreate.template +++ b/htroot/env/templates/submenuIndexCreate.template @@ -5,7 +5,7 @@