From 067728bcccdb1da96019a6d17bd48240756b50b1 Mon Sep 17 00:00:00 2001
From: reger
Date: Sun, 1 Jul 2012 00:12:20 +0200
Subject: [PATCH] add search result heuristic. adding a crawl job with depth-1
for every displayed search result (crawling every external linked page of
displayed search result pages)
---
defaults/yacy.init | 6 +-
htroot/ConfigHeuristics_p.html | 31 ++++++++-
htroot/ConfigHeuristics_p.java | 8 ++-
htroot/yacysearchitem.java | 1 +
source/net/yacy/search/Switchboard.java | 87 +++++++++++++++++++++++--
5 files changed, 124 insertions(+), 9 deletions(-)
diff --git a/defaults/yacy.init b/defaults/yacy.init
index 84e4656a0..6479bd42e 100644
--- a/defaults/yacy.init
+++ b/defaults/yacy.init
@@ -1015,6 +1015,8 @@ about.body =
# search heuristics
heuristic.site = false
heuristic.blekko = false
+heuristic.searchresults = false
+heuristic.searchresults.crawlglobal = false
# colours for generic design
color_background = #FFFFFF
@@ -1054,7 +1056,7 @@ federated.service.solr.indexing.commitWithinMs = 1000
federated.service.solr.indexing.sharding = MODULO_HOST_MD5
federated.service.solr.indexing.schemefile = solr.keys.default.list
# the lazy attribute causes that fields containing "" or 0 are not added and not written
-federated.service.solr.indexing.lazy = true
+federated.service.solr.indexing.lazy = true
# the indexing engine in YaCy can be switched off or on
# (off may make sense if federated.service.solr.indexing.enabled = true)
@@ -1095,4 +1097,4 @@ interaction.dontimportbookmarks =
interaction.autocrawler.enabled = false
interaction.autocrawler.domainfilter = .*
-interaction.autocrawler.categoryfilter = .*
+interaction.autocrawler.categoryfilter = .*
diff --git a/htroot/ConfigHeuristics_p.html b/htroot/ConfigHeuristics_p.html
index 0778c9396..57fc7cd5e 100644
--- a/htroot/ConfigHeuristics_p.html
+++ b/htroot/ConfigHeuristics_p.html
@@ -43,6 +43,34 @@
+
+
+
-
-
+
#%env/templates/footer.template%#