From ba03ca8620b36c07720783090ec594560cbb0ae9 Mon Sep 17 00:00:00 2001
From: orbiter
Date: Mon, 21 Mar 2011 07:50:34 +0000
Subject: [PATCH] added more configuration options for search: - removed
configuration button for 'search only for admin' from index.html and added
this to ConfigPortal - added configuration of link verification options
(iffresh, cacheonly, nocache, ifexist) to ConfigPortal - added configuration
of navigation options to ConfigPortal - added an option to switch off
automatic index cleaning in case that a link verification method fails
git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@7613 6c8d7289-2bf4-0310-a012-ef5d649a1542
---
defaults/yacy.init | 24 ++++++
htroot/ConfigPortal.html | 26 ++++++-
htroot/ConfigPortal.java | 29 ++++++++
htroot/index.html | 30 +++-----
htroot/index.java | 6 +-
htroot/yacysearch.html | 4 +-
htroot/yacysearch.java | 8 +-
source/de/anomic/search/ResultEntry.java | 2 +-
source/de/anomic/search/ResultFetcher.java | 13 ++--
source/de/anomic/search/SearchEvent.java | 7 +-
source/de/anomic/search/SearchEventCache.java | 3 +-
source/de/anomic/search/Switchboard.java | 4 +-
source/de/anomic/search/TextSnippet.java | 73 +++++++++++--------
13 files changed, 155 insertions(+), 74 deletions(-)
diff --git a/defaults/yacy.init b/defaults/yacy.init
index e6abc2195..48e3b626e 100644
--- a/defaults/yacy.init
+++ b/defaults/yacy.init
@@ -723,6 +723,30 @@ search.result.show.metadata = true
search.result.show.parser = true
search.result.show.pictures = true
+# search navigators: comma-separated list of default values for search navigation.
+# can be temporary different if search string is given with differen navigation values
+# assigning no value(s) means that no navigation is shown
+search.navigation=hosts,authors,namespace,topics
+
+# search result verification and snippet fetch caching rules
+# each search result can be verified byloading the link from the web
+# this can be enhanced using a cache. In some cases it may be appropriate
+# to not verify the link at all and do not compute a snippet
+# the possible cases are:
+# nocache: no use of web cache, load all snippets online
+# iffresh: use the cache if the cache exists and is fresh otherwise load online
+# ifexist: use the cache if the cache exist or load online
+# cacheonly: never go online, use all content from cache. If no cache entry exist,
+# consider content nevertheless as available and show result without snippet
+# false: no link verification and not snippet generation:
+ all search results are valid without verification
+search.verify = iffresh
+
+# in case that a link verification fails then the corresponding index reference can be
+# deleted to clean up the index. If this property is set then failed index verification in
+# the cases of nocache, iffresh and ifexist causes an index deletion
+search.verify.delete = true
+
# remote search details
remotesearch.maxcount = 20
remotesearch.maxtime = 1000
diff --git a/htroot/ConfigPortal.html b/htroot/ConfigPortal.html
index 872fa27bd..3d728faca 100644
--- a/htroot/ConfigPortal.html
+++ b/htroot/ConfigPortal.html
@@ -15,7 +15,7 @@
and a link to a home page that is reached when the 'corporate identity'-images are clicked.
To change also colours and styles use the Appearance Servlet for different skins and languages.