Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
*) fixed NPE which occured when empty String was entered as search word
low0121a24917cea58
diff --git a/source/de/anomic/search/SearchEvent.java b/source/de/anomic/search/SearchEvent.javaindex c9eb76b9e..c9afc0ea0 100644--- a/source/de/anomic/search/SearchEvent.java+++ b/source/de/anomic/search/SearchEvent.java@@ -113,7 +113,7 @@ public final class SearchEvent {boolean remote = (query.domType == QueryParams.SEARCHDOM_GLOBALDHT) || (query.domType == QueryParams.SEARCHDOM_CLUSTERALL);if (remote && peers.sizeConnected() == 0) remote = false;final long start = System.currentTimeMillis();- if (remote) {+ if (remote) {// initialize a ranking process that is the target for data// that is generated concurrently from local and global search threadsthis.rankingProcess = new RankingProcess(this.query, this.order, max_results_preparation);@@ -144,8 +144,8 @@ public final class SearchEvent {(query.domType == QueryParams.SEARCHDOM_GLOBALDHT) ? null : preselectedPeerHashes,burstRobinsonPercent,burstMultiwordPercent);- Log.logFine("SEARCH_EVENT", "STARTING " + this.primarySearchThreads.length + " THREADS TO CATCH EACH " + remote_maxcount + " URLs");if (this.primarySearchThreads != null) {+ Log.logFine("SEARCH_EVENT", "STARTING " + this.primarySearchThreads.length + " THREADS TO CATCH EACH " + remote_maxcount + " URLs");this.rankingProcess.moreFeeders(this.primarySearchThreads.length);EventTracker.update(EventTracker.EClass.SEARCH, new ProfilingGraph.searchEvent(query.id(true), Type.REMOTESEARCH_START, "", this.primarySearchThreads.length, System.currentTimeMillis() - timer), false);// finished searching