Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
in case that the crawler is running and the search user is the peer admin, we expect that the user wants to check recently crawled document to ensure that recent crawl results are inside the search results, we do a soft commit here.
Michael Peter Christencb2c25d93085
diff --git a/htroot/yacysearch.java b/htroot/yacysearch.javaindex 3c8a83ef0..eac4365b2 100644--- a/htroot/yacysearch.java+++ b/htroot/yacysearch.java@@ -113,6 +113,12 @@ public class yacysearch {"") : env.getConfig(SwitchboardConstants.GREETING, "");final String client = header.get(HeaderFramework.CONNECTION_PROP_CLIENTIP); // the search client who initiated the search+ // in case that the crawler is running and the search user is the peer admin, we expect that the user wants to check recently crawled document+ // to ensure that recent crawl results are inside the search results, we do a soft commit here. This is also important for live demos!+ if (authenticated && sb.getThread(SwitchboardConstants.CRAWLJOB_LOCAL_CRAWL).getJobCount() > 0) {+ sb.index.fulltext().commit(true);+ }+// get queryfinal String originalquerystring = (post == null) ? "" : post.get("query", post.get("search", "")).trim();String querystring = originalquerystring.replace('+', ' ').trim();