Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
fix in snippet loading
orbiter58035ef78403
diff --git a/source/de/anomic/search/TextSnippet.java b/source/de/anomic/search/TextSnippet.javaindex b76dc5d6b..f1f70ac15 100644--- a/source/de/anomic/search/TextSnippet.java+++ b/source/de/anomic/search/TextSnippet.java@@ -348,7 +348,6 @@ public class TextSnippet implements Comparable<TextSnippet>, Comparator<TextSnip// try to create the snippet from information given in the subject metadatareturn new TextSnippet(url, loc, SOURCE_METADATA, null, null, faviconCache.get(new String(url.hash())));} else {-// trying to load the resource from the cacheresContent = Cache.getContent(url);responseHeader = Cache.getResponseHeader(url);@@ -373,11 +372,8 @@ public class TextSnippet implements Comparable<TextSnippet>, Comparator<TextSnip}// if it is still not available, report an error- if (resContent == null) return new TextSnippet(url, null, ERROR_RESOURCE_LOADING, queryhashes, "error loading resource, plasmaHTCache.Entry cache is NULL");-+ if (resContent == null) return new TextSnippet(url, null, ERROR_RESOURCE_LOADING, queryhashes, "error loading resource from net, no cache entry");source = SOURCE_WEB;- } else {- return new TextSnippet(url, null, ERROR_SOURCE_LOADING, queryhashes, "no resource available");}}} catch (final Exception e) {