Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
- fix to gsa searchresult answer in case that no query part is given - fix to gsa default number of results (is 'num')
Michael Peter Christen23fb4589631d
diff --git a/htroot/env/templates/header.template b/htroot/env/templates/header.templateindex 7d4827281..262696e4e 100644--- a/htroot/env/templates/header.template+++ b/htroot/env/templates/header.template@@ -13,7 +13,7 @@<!--<li><a href="/yacysearch_location.html" class="MenuItemLink">Location Search</a></li>--><li><a href="/solr/select?q=*:*&defType=edismax&start=0&rows=3&core=collection1" class="MenuItemLink">Solr Default Core</a></li><li><a href="/solr/select?q=*:*&defType=edismax&start=0&rows=3&core=webgraph" class="MenuItemLink">Solr Webgraph Core</a></li>- <li><a href="/gsa/search?q=www&size=3" class="MenuItemLink">Google Appliance API</a></li>+ <li><a href="/gsa/search?q=www&num=3" class="MenuItemLink">Google Appliance API</a></li><!--<li><a href="/yacy/ui/" accesskey="s" class="MenuItemLink">Rich Client Search</a></li>--><li><a href="/compare_yacy.html?display=1" class="MenuItemLink">Compare Search</a></li><li><a href="/ViewFile.html" class="MenuItemLink">URL Viewer</a></li>diff --git a/htroot/gsa/searchresult.java b/htroot/gsa/searchresult.javaindex 5cc41e259..9a2450260 100644--- a/htroot/gsa/searchresult.java+++ b/htroot/gsa/searchresult.java@@ -80,7 +80,7 @@ public class searchresult {* @param out* @return*/- public static serverObjects respond(final RequestHeader header, final serverObjects post, final serverSwitch env, final OutputStream out) {+ public static serverObjects respond(final RequestHeader header, serverObjects post, final serverSwitch env, final OutputStream out) {// this uses the methods in the jetty servlet environment and can be removed if jetty in implementedSwitchboard sb = (Switchboard) env;@@ -96,7 +96,7 @@ public class searchresult {if (!searchAllowed) return null;// check post- if (post == null) return null;+ if (post == null) {post = new serverObjects(); post.put("q", ""); post.put("num", "0");}Log.logInfo("GSA Query", post.toString());sb.intermissionAllThreads(3000); // tell all threads to do nothing for a specific time