diff --git a/htroot/yacysearch.java b/htroot/yacysearch.java index 9a42be07a..9e1dfe47a 100644 --- a/htroot/yacysearch.java +++ b/htroot/yacysearch.java @@ -152,7 +152,7 @@ public class yacysearch { int itemsPerPage = Math.min((authenticated) ? 1000 : 10, post.getInt("maximumRecords", post.getInt("count", 10))); // SRU syntax with old property as alternative int offset = (newsearch) ? 0 : post.getInt("startRecord", post.getInt("offset", 0)); - boolean global = (post == null) ? true : post.get("resource", "global").equals("global"); + boolean global = post.get("resource", "local").equals("global"); final boolean indexof = (post != null && post.get("indexof","").equals("on")); String urlmask = null;