Skip to content

Commit

Permalink
allow more results for a single query at the same time if the client …
Browse files Browse the repository at this point in the history
…is not authorized. This is necessary for the search widget where the default number of results is now set to 20 instead of 10 to cause that a scroll bar is shown which is necessary to get a trigger for new searches for more results.

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@6728 6c8d7289-2bf4-0310-a012-ef5d649a1542
  • Loading branch information
orbiter committed Mar 7, 2010
1 parent 57e1eae commit 58d75a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htroot/yacysearch.java
Expand Up @@ -165,7 +165,7 @@ public static serverObjects respond(final RequestHeader header, final serverObje
// collect search attributes
boolean newsearch = post.hasValue("query") && post.hasValue("former") && !post.get("query","").equalsIgnoreCase(post.get("former","")); //new search term

int itemsPerPage = Math.min((authenticated) ? 1000 : 10, post.getInt("maximumRecords", post.getInt("count", 10))); // SRU syntax with old property as alternative
int itemsPerPage = Math.min((authenticated) ? 1000 : 20, post.getInt("maximumRecords", post.getInt("count", 10))); // SRU syntax with old property as alternative
int offset = (newsearch) ? 0 : post.getInt("startRecord", post.getInt("offset", 0));

boolean global = post.get("resource", "local").equals("global");
Expand Down

0 comments on commit 58d75a6

Please sign in to comment.