diff --git a/htroot/yacysearch.java b/htroot/yacysearch.java index 442830ea8..8f7b1607c 100644 --- a/htroot/yacysearch.java +++ b/htroot/yacysearch.java @@ -185,8 +185,8 @@ public class yacysearch { final boolean indexReceiveGranted = sb.getConfig("allowReceiveIndex", "true").equals("true"); final boolean offline = yacyCore.seedDB.mySeed.isVirgin(); final boolean clustersearch = sb.isRobinsonMode() && - (sb.getConfig("clustermode", "").equals("privatecluster") || - sb.getConfig("clustermode", "").equals("publiccluster")); + (sb.getConfig("cluster.mode", "").equals("privatecluster") || + sb.getConfig("cluster.mode", "").equals("publiccluster")); if (offline || !indexDistributeGranted || !indexReceiveGranted) { global = false; } if (clustersearch) global = true; // switches search on, but search target is limited to cluster nodes diff --git a/source/de/anomic/yacy/yacySearch.java b/source/de/anomic/yacy/yacySearch.java index b55904def..8c5b57cb4 100644 --- a/source/de/anomic/yacy/yacySearch.java +++ b/source/de/anomic/yacy/yacySearch.java @@ -155,7 +155,12 @@ public class yacySearch extends Thread { s = yacyCore.seedDB.getConnected((String) i.next()); if (s != null) l.add(s); } - return (yacySeed[]) l.toArray(); + yacySeed[] result = new yacySeed[l.size()]; + for (int j = 0; j < l.size(); j++) { + result[j] = (yacySeed) l.get(j); + } + return result; + //return (yacySeed[]) l.toArray(); } private static yacySeed[] selectDHTPeers(Set wordhashes, int seedcount) {