Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
Avoid stopwords as topwords, configurable
rramthun045d7585378b
diff --git a/htroot/yacysearch.java b/htroot/yacysearch.javaindex 4dd5a2118..24003a452 100644--- a/htroot/yacysearch.java+++ b/htroot/yacysearch.java@@ -367,6 +367,13 @@ public class yacysearch {kelondroMSetTools.excludeDestructive(topwords, plasmaSwitchboard.badwords);}+ //avoid stopwords being topwords+ if (env.getConfig("filterOutStopwordsFromTopwords", "true").equals("true")) {+ if ((plasmaSwitchboard.stopwords != null) && (plasmaSwitchboard.stopwords.size() > 0)) {+ kelondroMSetTools.excludeDestructive(topwords, plasmaSwitchboard.stopwords);+ }+ }+String word;hintcount = 0;final Iterator iter = topwords.iterator();diff --git a/yacy.init b/yacy.initindex e62eb7552..0118940db 100644--- a/yacy.init+++ b/yacy.init@@ -462,6 +462,11 @@ xsstopw=truexdstopw=truexpstopw=true+# Topwords filtering+# If set to true, all stopwords (stopwords.yacy) are filtered from the topwords+# Change to false if requesting hits from peers with modified stopwords-file and using the unchanged client-version+filterOutStopwordsFromTopwords=true+# performance-settings# delay-times for permanent loops (milliseconds)# the idlesleep is the pause that an proces sleeps if the last call to the