Skip to content

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

increased row limitation for authorized users from 10000 to 100000000 in solr interface

orbiterd571e739b6fe
diff --git a/htroot/solr/select.java b/htroot/solr/select.java
index 5ac40274d..8ec27c6d4 100644
--- a/htroot/solr/select.java
+++ b/htroot/solr/select.java
@@ -163,7 +163,7 @@ public class select {
String q = post.get(CommonParams.Q, "");
if (!post.containsKey(CommonParams.START)) post.put(CommonParams.START, post.remove("startRecord", 0)); // sru patch
if (!post.containsKey(CommonParams.ROWS)) post.put(CommonParams.ROWS, post.remove("maximumRecords", 10)); // sru patch
- post.put(CommonParams.ROWS, Math.min(post.getInt(CommonParams.ROWS, 10), (authenticated) ? 10000 : 100));
+ post.put(CommonParams.ROWS, Math.min(post.getInt(CommonParams.ROWS, 10), (authenticated) ? 100000000 : 100));
// set ranking according to profile number if ranking attributes are not given in the request
if (!post.containsKey("sort") && !post.containsKey("bq") && !post.containsKey("bf") && !post.containsKey("boost")) {