Skip to content

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

limiting the Number of Items displayed to 100 max. http://www.yacy-forum.de/viewtopic.php?p=13275

allo38d915e24ce0
diff --git a/htroot/IndexCreateIndexingQueue_p.java b/htroot/IndexCreateIndexingQueue_p.java
index 0aa20dc85..1dd3f25e9 100644
--- a/htroot/IndexCreateIndexingQueue_p.java
+++ b/htroot/IndexCreateIndexingQueue_p.java
@@ -140,7 +140,9 @@ public class IndexCreateIndexingQueue_p {
entryList.addAll(switchboard.sbQueue.list(0));
}
- for (int i = 0; i < entryList.size(); i++) {
+ int count=entryList.size();
+ if(count>100)count=100;
+ for (int i = 0; i < count; i++) {
boolean inProcess = i < inProcessCount;
pcentry = (plasmaSwitchboardQueue.Entry) entryList.get(i);
long entrySize = pcentry.size();