From eb4436defb5812aefb9628a0c392fb397c6137b3 Mon Sep 17 00:00:00 2001 From: orbiter Date: Wed, 23 Nov 2011 21:40:11 +0000 Subject: [PATCH] removed limitation to cluster peers if peer is asked remotely. This enables single-linked clusters which naturaly is there first if a new cluster is created git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@8080 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- htroot/yacy/search.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/htroot/yacy/search.java b/htroot/yacy/search.java index ab72d7f3a..e17442496 100644 --- a/htroot/yacy/search.java +++ b/htroot/yacy/search.java @@ -117,8 +117,8 @@ public final class search { language = (agent == null) ? "en" : ISO639.userAgentLanguageDetection(agent); if (language == null) language = "en"; } - final int partitions = post.getInt("partitions", 30); - String profile = post.get("profile", ""); // remote profile hand-over + final int partitions = post.getInt("partitions", 30); + String profile = post.get("profile", ""); // remote profile hand-over if (profile.length() > 0) profile = crypt.simpleDecode(profile, null); //final boolean includesnippet = post.get("includesnippet", "false").equals("true"); Bitfield constraint = ((post.containsKey("constraint")) && (post.get("constraint", "").length() > 0)) ? new Bitfield(4, post.get("constraint", "______")) : null; @@ -142,6 +142,7 @@ public final class search { // http://localhost:8090/yacy/search.html?query=4galTpdpDM5Qgh8DKIhGKXws&abstracts=auto (search for linux and book, generate abstract automatically) // http://localhost:8090/yacy/search.html?query=&abstracts=4galTpdpDM5Q (only abstracts for linux) + /* if ((sb.isRobinsonMode()) && (!((sb.isPublicRobinson()) || (sb.isInMyCluster(header.get(HeaderFramework.CONNECTION_PROP_CLIENTIP)))))) { @@ -151,6 +152,7 @@ public final class search { prop.put("references", ""); return prop; } + n*/ // check the search tracker TreeSet trackerHandles = sb.remoteSearchTracker.get(client);