Skip to content

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

*) If there are at most 10 entries left while doing an index transfer, these entries will also be appended to the index list |> D 2005/08/18 10:00:02 PLASMA Selected partial index (33 from 37 URLs, 0 not bound) for word fSuQM0xAJK1G See: http://www.yacy-forum.de/viewtopic.php?t=970

theliec4c70d722b5
diff --git a/source/de/anomic/plasma/plasmaWordIndexDistribution.java b/source/de/anomic/plasma/plasmaWordIndexDistribution.java
index c5567b3ca..0bda530ab 100644
--- a/source/de/anomic/plasma/plasmaWordIndexDistribution.java
+++ b/source/de/anomic/plasma/plasmaWordIndexDistribution.java
@@ -246,7 +246,8 @@ public class plasmaWordIndexDistribution {
indexEntity = wordIndex.getEntity(nexthash, true);
if (indexEntity.size() == 0) {
indexEntity.deleteComplete();
- } else if (indexEntity.size() <= count) {
+ } else if ((indexEntity.size() <= count)|| // if we havn't exceeded the limit
+ (Math.abs(indexEntity.size() - count) <= 10)){ // or there are only at most 10 entries left
// take the whole entity
try {
// fist check if we know all urls