mirror of
https://github.com/yacy/yacy_search_server.git
synced 2024-09-19 00:01:41 +02:00
fix (enable) error msg on empty query
This commit is contained in:
parent
ef5c5b4489
commit
c475be2937
|
@ -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.</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 id="results"></div>
|
||||||
<div class="progress">
|
<div class="progress">
|
||||||
|
|
|
@ -845,8 +845,8 @@ public class yacysearch {
|
||||||
prop.put("excluded", "0");
|
prop.put("excluded", "0");
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( prop == null || prop.isEmpty() ) {
|
if (prop.isEmpty() || querystring.length() == 0) {
|
||||||
if ( post.get("query", post.get("search", "")).length() < 2 ) {
|
if ( querystring.length() == 0 ) { // querystring is trimmed originalquerystring
|
||||||
prop.put("num-results", "2"); // no results - at least 2 chars
|
prop.put("num-results", "2"); // no results - at least 2 chars
|
||||||
} else {
|
} else {
|
||||||
prop.put("num-results", "1"); // no results
|
prop.put("num-results", "1"); // no results
|
||||||
|
|
Loading…
Reference in New Issue
Block a user