From 23fb4589631d16889a57b80ee7ea57cdc8698ae2 Mon Sep 17 00:00:00 2001 From: Michael Peter Christen Date: Fri, 28 Jun 2013 12:22:33 +0200 Subject: [PATCH] - fix to gsa searchresult answer in case that no query part is given - fix to gsa default number of results (is 'num') --- htroot/env/templates/header.template | 2 +- htroot/gsa/searchresult.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/htroot/env/templates/header.template b/htroot/env/templates/header.template index 7d4827281..262696e4e 100644 --- a/htroot/env/templates/header.template +++ b/htroot/env/templates/header.template @@ -13,7 +13,7 @@
  • Solr Default Core
  • Solr Webgraph Core
  • -
  • Google Appliance API
  • +
  • Google Appliance API
  • Compare Search
  • URL Viewer
  • diff --git a/htroot/gsa/searchresult.java b/htroot/gsa/searchresult.java index 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 implemented Switchboard 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