Skip to content

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

*) 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.java
index 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 ser
log.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;
}