diff --git a/htroot/ViewFile.java b/htroot/ViewFile.java index 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 entry if (urlEntry == null || urlEntry.url() == null) {