Skip to content

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

- enhanced index create menu structure - clear search log caches each time a search is done

orbiter906c5726219d
diff --git a/htroot/ContentIntegrationPHPBB3_p.html b/htroot/ContentIntegrationPHPBB3_p.html
index c92b9d012..6eadd65db 100644
--- a/htroot/ContentIntegrationPHPBB3_p.html
+++ b/htroot/ContentIntegrationPHPBB3_p.html
@@ -6,7 +6,7 @@
</head>
<body id="ContentIntegrationPHPBB3">
#%env/templates/header.template%#
- #%env/templates/submenuContentIntegration.template%#
+ #%env/templates/submenuIndexCreate.template%#
<h2>Content Integration: Retrieval from phpBB3 Databases</h2>
<p>
It is possible to extract texts directly from mySQL and postgreSQL databases.
diff --git a/htroot/IndexImportOAIPMH_p.html b/htroot/IndexImportOAIPMH_p.html
index be20d2527..713bc42ec 100644
--- a/htroot/IndexImportOAIPMH_p.html
+++ b/htroot/IndexImportOAIPMH_p.html
@@ -7,7 +7,7 @@
</head>
<body id="IndexImportOAIPMH">
#%env/templates/header.template%#
- #%env/templates/submenuContentIntegration.template%#
+ #%env/templates/submenuIndexCreate.template%#
<h2>OAI-PMH Import</h2>
<p>Results from the import can be monitored in the <a href="/CrawlResults.html?process=7">indexing results for surrogates</a></p>
diff --git a/htroot/IndexImportWikimedia_p.html b/htroot/IndexImportWikimedia_p.html
index b25b43429..781504625 100644
--- a/htroot/IndexImportWikimedia_p.html
+++ b/htroot/IndexImportWikimedia_p.html
@@ -7,7 +7,7 @@
</head>
<body id="IndexImportWikimedia">
#%env/templates/header.template%#
- #%env/templates/submenuContentIntegration.template%#
+ #%env/templates/submenuIndexCreate.template%#
<h2>Wikimedia Dump Import</h2>
#(import)#
diff --git a/htroot/env/templates/header.template b/htroot/env/templates/header.template
index c125129b7..67fe88a1e 100644
--- a/htroot/env/templates/header.template
+++ b/htroot/env/templates/header.template
@@ -61,7 +61,6 @@
<li><a href="/CrawlStart_p.html" class="MenuItemLink lock">Index Creation</a></li>
<li><a href="/Crawler_p.html" class="MenuItemLink lock">Crawler Monitor</a></li>
<li><a href="/CrawlResults.html?process=5&amp;autoforward=" class="MenuItemLink">Crawl Results</a></li>
- <li><a href="/ContentIntegrationPHPBB3_p.html" class="MenuItemLink lock">Content Import</a></li>
<li><a href="/IndexControlRWIs_p.html" class="MenuItemLink lock">Index Administration</a></li>
<li><a href="/Blacklist_p.html" class="MenuItemLink lock">Filter &amp; Blacklists</a></li>
</ul>
diff --git a/htroot/env/templates/submenuContentIntegration.template b/htroot/env/templates/submenuContentIntegration.template
deleted file mode 100644
index f513d904a..000000000
--- a/htroot/env/templates/submenuContentIntegration.template
+++ /dev/null
@@ -1,8 +0,0 @@
-<div class="SubMenu">
- <h3>External Content Integration</h3>
- <ul class="SubMenu">
- <li><a href="/ContentIntegrationPHPBB3_p.html" class="MenuItemLink lock">Import phpBB3 forum</a></li>
- <li><a href="/IndexImportWikimedia_p.html" class="MenuItemLink lock">Import Wikimedia dumps</a></li>
- <li><a href="/IndexImportOAIPMH_p.html" class="MenuItemLink lock">Import OAI-PMH Sources</a></li>
- </ul>
-</div>
\ No newline at end of file
diff --git a/htroot/env/templates/submenuIndexCreate.template b/htroot/env/templates/submenuIndexCreate.template
index 0ce56a761..27a77b2f1 100644
--- a/htroot/env/templates/submenuIndexCreate.template
+++ b/htroot/env/templates/submenuIndexCreate.template
@@ -1,10 +1,36 @@
<div class="SubMenu">
<h3>Index Creation</h3>
- <ul class="SubMenu">
- <li><a href="/CrawlStart_p.html" class="MenuItemLink lock">Crawl Start (Advanced)</a></li>
- <li><a href="/Load_MediawikiWiki.html" class="MenuItemLink">Indexing of Media Wikis</a></li>
- <li><a href="/Load_PHPBB3.html" class="MenuItemLink">Indexing of phpBB3 Forums</a></li>
- <li><a href="/Load_RSS_p.html" class="MenuItemLink lock">Indexing of RSS Feeds</a></li>
- <li><a href="/ProxyIndexingMonitor_p.html" class="MenuItemLink lock">Scraping Proxy Configuration</a></li>
- </ul>
+</div>
+<div class="SubMenu">
+ <div class="SubMenugroup">
+ <h3>Crawler/Spider</h3>
+ <ul class="SubMenu">
+ <li><a href="/CrawlStart_p.html" class="MenuItemLink lock">Web/FTP Crawl Start<br/>(Advanced)</a></li>
+ <li><a href="/Load_MediawikiWiki.html" class="MenuItemLink">Crawling of<br/>Media Wikis</a></li>
+ <li><a href="/Load_PHPBB3.html" class="MenuItemLink">Crawling of<br/>phpBB3 Forums</a></li>
+ </ul>
+ </div>
+
+ <div class="SubMenugroup">
+ <h3>Database Reader</h3>
+ <ul class="SubMenu">
+ <li><a href="/ContentIntegrationPHPBB3_p.html" class="MenuItemLink lock">Database Reader for<br/>phpBB3 Forums</a></li>
+ <li><a href="/IndexImportWikimedia_p.html" class="MenuItemLink lock">Dump Reader for <br/>Wikimedia dumps</a></li>
+ </ul>
+ </div>
+
+ <div class="SubMenugroup">
+ <h3>Content Import</h3>
+ <ul class="SubMenu">
+ <li><a href="/Load_RSS_p.html" class="MenuItemLink lock">RSS Feed<br/>Importer</a></li>
+ <li><a href="/IndexImportOAIPMH_p.html" class="MenuItemLink lock">OAI-PMH Server<br/>Importer</a></li>
+ </ul>
+ </div>
+
+ <div class="SubMenugroup">
+ <h3>Other Harvesting Methods</h3>
+ <ul class="SubMenu">
+ <li><a href="/ProxyIndexingMonitor_p.html" class="MenuItemLink lock">Document Harvesting<br/>with Scraping Proxy</a></li>
+ </ul>
+ </div>
</div>
\ No newline at end of file
diff --git a/htroot/yacy/search.java b/htroot/yacy/search.java
index 5e30c4e78..f6af907b3 100644
--- a/htroot/yacy/search.java
+++ b/htroot/yacy/search.java
@@ -166,8 +166,9 @@ public final class search {
}
// tell all threads to do nothing for a specific time
- sb.intermissionAllThreads(3000);
+ sb.intermissionAllThreads(500);
+ EventTracker.delete(EventTracker.EClass.SEARCH);
final HandleSet abstractSet = ((abstracts.length() == 0) || (abstracts.equals("auto"))) ? null : QueryParams.hashes2Set(abstracts);
// store accessing peer
diff --git a/htroot/yacysearch.java b/htroot/yacysearch.java
index 220c651fb..f327fac9f 100644
--- a/htroot/yacysearch.java
+++ b/htroot/yacysearch.java
@@ -488,6 +488,7 @@ public class yacysearch {
authenticated,
indexSegment,
ranking);
+ EventTracker.delete(EventTracker.EClass.SEARCH);
EventTracker.update(EventTracker.EClass.SEARCH, new ProfilingGraph.searchEvent(theQuery.id(true), SearchEvent.Type.INITIALIZATION, "", 0, 0), false);
// tell all threads to do nothing for a specific time
diff --git a/source/net/yacy/kelondro/util/EventTracker.java b/source/net/yacy/kelondro/util/EventTracker.java
index b96cc9ebb..50e432b63 100644
--- a/source/net/yacy/kelondro/util/EventTracker.java
+++ b/source/net/yacy/kelondro/util/EventTracker.java
@@ -49,6 +49,11 @@ public class EventTracker {
private final static Map<EClass, ConcurrentLinkedQueue<Event>> historyMaps = new ConcurrentHashMap<EClass, ConcurrentLinkedQueue<Event>>();
private final static Map<EClass, Long> eventAccess = new ConcurrentHashMap<EClass, Long>(); // value: last time when this was accessed
+ public final static void delete(final EClass eventName) {
+ historyMaps.remove(eventName);
+ eventAccess.remove(eventName);
+ }
+
public final static void update(final EClass eventName, final Object eventPayload, boolean useProtection) {
// check protection against too heavy access
if (useProtection) {