Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

in live search, show at least 20 entries instead of only 10 this is a work-around for the problem that the search widget does not load a second page if the first page did not fill up the window with enough lines such that a scrollbar ist visible. Because the scrollbar triggers loading of following pages, this must be enforced with the trick that more result lines must be shown after the first search.

orbiter9bbd546e645d
diff --git a/htroot/ConfigLiveSearch.html b/htroot/ConfigLiveSearch.html
index 90d7707e9..6bc86d5fa 100644
--- a/htroot/ConfigLiveSearch.html
+++ b/htroot/ConfigLiveSearch.html
@@ -38,7 +38,7 @@
<form id="ysearch" method="get" accept-charset="UTF-8" action="http://#[ip]#:#[port]#/yacysearch.html">
Live Search <input name="query" id="yquery" class="fancy" type="text" size="15" maxlength="80" value=""/>
<input type="hidden" name="verify" value="true" />
- <input type="hidden" name="maximumRecords" value="10" />
+ <input type="hidden" name="maximumRecords" value="20" />
<input type="hidden" name="resource" value="local" />
<input type="hidden" name="urlmaskfilter" value=".*" />
<input type="hidden" name="prefermaskfilter" value="" />
diff --git a/htroot/env/templates/header.template b/htroot/env/templates/header.template
index 68f03df90..b0eee8b56 100644
--- a/htroot/env/templates/header.template
+++ b/htroot/env/templates/header.template
@@ -31,7 +31,7 @@
<form id="ysearch" method="get" accept-charset="UTF-8" action="yacysearch.html">
<input name="search" id="yquery" class="fancy" type="text" size="20" maxlength="80" value=""/>
<input type="hidden" name="verify" value="true" />
- <input type="hidden" name="maximumRecords" value="10" />
+ <input type="hidden" name="maximumRecords" value="20" />
<input type="hidden" name="resource" value="local" />
<input type="hidden" name="urlmaskfilter" value=".*" />
<input type="hidden" name="prefermaskfilter" value="" />