Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
fixed usage of ViewFile which needs a commit before showing latest crawl result pages.
Michael Peter Christen1a92b61d6943
diff --git a/htroot/ViewFile.java b/htroot/ViewFile.javaindex b7ab8ec67..24a97afd8 100644--- a/htroot/ViewFile.java+++ b/htroot/ViewFile.java@@ -136,6 +136,9 @@ public class ViewFile {// get the urlEntry that belongs to the url hash//boolean ue = urlHash.length() > 0 && indexSegment.exists(ASCII.getBytes(urlHash));//if (ue) Log.logInfo("ViewFile", "exists(" + urlHash + ")");+ if (urlHash.length() > 0 && (urlEntry = indexSegment.fulltext().getMetadata(ASCII.getBytes(urlHash))) == null) {+ indexSegment.fulltext().commit(true);+ }if (urlHash.length() > 0 && (urlEntry = indexSegment.fulltext().getMetadata(ASCII.getBytes(urlHash))) != null) {// get the url that belongs to the entryif (urlEntry == null || urlEntry.url() == null) {