Skip to content

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

only admins should be able to force a commit

Michael Peter Christen234ca720f54c
diff --git a/htroot/HostBrowser.java b/htroot/HostBrowser.java
index 242b33ada..e8c2ba3b9 100644
--- a/htroot/HostBrowser.java
+++ b/htroot/HostBrowser.java
@@ -98,7 +98,7 @@ public class HostBrowser {
}
String path = post == null ? "" : post.get("path", "").trim();
- sb.index.fulltext().commit(true);
+ if (admin) sb.index.fulltext().commit(true);
if (post == null || env == null) {
prop.putNum("ucount", fulltext.collectionSize());
return prop;