Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
*) Speedup of indexer. Proxy files will not be enqueued by the cachemanager into the sb-queue anymore if the mimeType or fileExtension is not supported by the installed parsers. - Advantage: Avoiding unnecessary enqueueing and dequeueing from queue
theli578f36ae18b5
diff --git a/source/de/anomic/plasma/plasmaSwitchboard.java b/source/de/anomic/plasma/plasmaSwitchboard.javaindex e8a8f9ea1..c924acf79 100644--- a/source/de/anomic/plasma/plasmaSwitchboard.java+++ b/source/de/anomic/plasma/plasmaSwitchboard.java@@ -537,12 +537,16 @@ public final class plasmaSwitchboard extends serverAbstractSwitch implements serlog.logInfo("EXISTING FILE (" + entry.cacheFile.length() + " bytes) for " + entry.cacheFile);}- // enqueue for further crawling- enQueue(sbQueue.newEntry(entry.url, plasmaURL.urlHash(entry.referrerURL()),- entry.requestHeader.ifModifiedSince(), entry.requestHeader.containsKey(httpHeader.COOKIE),- entry.initiator(), entry.depth, entry.profile.handle(),- entry.name()- ));+ if (plasmaParser.supportedMimeTypesContains(entry.responseHeader.mime()) ||+ plasmaParser.supportedFileExt(entry.url)) {++ // enqueue for further crawling+ enQueue(sbQueue.newEntry(entry.url, plasmaURL.urlHash(entry.referrerURL()),+ entry.requestHeader.ifModifiedSince(), entry.requestHeader.containsKey(httpHeader.COOKIE),+ entry.initiator(), entry.depth, entry.profile.handle(),+ entry.name()+ ));+ }return true;}