Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
fix (enable) error msg on empty query
regerc475be293739
diff --git a/htroot/yacysearch.html b/htroot/yacysearch.htmlindex d9a6efc75..d3e1987af 100644--- a/htroot/yacysearch.html+++ b/htroot/yacysearch.html@@ -115,7 +115,7 @@ Use the RSS search result format to add static searches to your RSS reader, if y::<p>No Results.</p>::- <p>No Results. (length of search words must be at least 2 characters)</p>+ <p>No Results. (length of search words must be at least 1 character)</p>::<div id="results"></div><div class="progress">diff --git a/htroot/yacysearch.java b/htroot/yacysearch.javaindex bc5ea4982..445cb7137 100644--- a/htroot/yacysearch.java+++ b/htroot/yacysearch.java@@ -845,8 +845,8 @@ public class yacysearch {prop.put("excluded", "0");}- if ( prop == null || prop.isEmpty() ) {- if ( post.get("query", post.get("search", "")).length() < 2 ) {+ if (prop.isEmpty() || querystring.length() == 0) {+ if ( querystring.length() == 0 ) { // querystring is trimmed originalquerystringprop.put("num-results", "2"); // no results - at least 2 chars} else {prop.put("num-results", "1"); // no results