From 9a27bf6e82b31739a4187a076a711b96e853a1c3 Mon Sep 17 00:00:00 2001 From: Michael Peter Christen Date: Wed, 4 Dec 2013 13:09:15 +0100 Subject: [PATCH] removed filter computation in Protocol class for remote searches because that is already done in the QueryParams class --- source/net/yacy/peers/Protocol.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/source/net/yacy/peers/Protocol.java b/source/net/yacy/peers/Protocol.java index 698880f01..3e702d0c4 100644 --- a/source/net/yacy/peers/Protocol.java +++ b/source/net/yacy/peers/Protocol.java @@ -911,9 +911,6 @@ public final class Protocol { } String filter = event.query.urlMask.pattern().toString(); - if (event.query.tld != null) filter = ".*" + event.query.tld + ".*" + filter; - if (event.query.modifier.protocol != null) filter = ".*" + event.query.modifier.protocol + ".*" + filter; - if (event.query.modifier.filetype != null) filter = filter + ".*" + event.query.modifier.filetype + ".*"; parts.put("myseed", UTF8.StringBody((event.peers.mySeed() == null) ? "" : event.peers.mySeed().genSeedStr(key))); parts.put("count", UTF8.StringBody(Integer.toString(Math.max(10, count)))); parts.put("time", UTF8.StringBody(Long.toString(Math.max(3000, time))));