Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
allow more references per word for new db
orbiter14e0bb0dcfc8
diff --git a/source/de/anomic/plasma/plasmaWordIndex.java b/source/de/anomic/plasma/plasmaWordIndex.javaindex d0af30cd8..90fc41234 100644--- a/source/de/anomic/plasma/plasmaWordIndex.java+++ b/source/de/anomic/plasma/plasmaWordIndex.java@@ -94,7 +94,7 @@ public final class plasmaWordIndex extends indexAbstractRI implements indexRI {public plasmaWordIndex(File oldDatabaseRoot, File newIndexRoot, int bufferkb, long preloadTime, serverLog log, boolean useCollectionIndex) {this.oldDatabaseRoot = oldDatabaseRoot;this.backend = new plasmaWordIndexFileCluster(oldDatabaseRoot, log);- this.ramCache = new indexRAMCacheRI(oldDatabaseRoot, (useCollectionIndex) ? 256 : 64, log);+ this.ramCache = new indexRAMCacheRI(oldDatabaseRoot, (useCollectionIndex) ? 1024 : 64, log);// create assortment cluster pathFile assortmentClusterPath = new File(oldDatabaseRoot, indexAssortmentClusterPath);@@ -201,9 +201,9 @@ public final class plasmaWordIndex extends indexAbstractRI implements indexRI {public void flushCacheSome() {synchronized (this) { ramCache.shiftK2W(); }//int flushCount = ramCache.wSize() / 420;- int flushCount = ramCache.wSize() / 3000; // for testings+ int flushCount = ramCache.wSize() / 5000; // for testingsif (flushCount > 100) flushCount = 100;- if (flushCount < 5) flushCount = Math.min(5, ramCache.wSize());+ if (flushCount < 1) flushCount = Math.min(1, ramCache.wSize());flushCache(flushCount);}