Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

*) peer-search now checks matches to peername and peerhash

hydrox2522c26921ba
diff --git a/htroot/Network.java b/htroot/Network.java
index 1622ee5a4..2508cc014 100644
--- a/htroot/Network.java
+++ b/htroot/Network.java
@@ -304,10 +304,16 @@ public class Network {
seed = (yacySeed) e.nextElement();
if (seed != null) {
if(post.containsKey("search")) {
+ boolean abort = true;
Matcher m = peerSearchPattern.matcher (seed.getName());
- if (!m.find ()) {
- continue;
+ if (m.find ()) {
+ abort = false;
}
+ m = peerSearchPattern.matcher (seed.hash);
+ if (m.find ()) {
+ abort = false;
+ }
+ if (abort) continue;
}
prop.put(STR_TABLE_LIST + conCount + "_updatedProfile", 0);
prop.put(STR_TABLE_LIST + conCount + "_updatedWikiPage", 0);