Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
small fixes to getpageinfo_p.xml and htmlFilterContentScraper.java with respect to keyword extraction
apfelmaennchen5e8bd0f29c29
diff --git a/htroot/xml/util/getpageinfo_p.java b/htroot/xml/util/getpageinfo_p.javaindex 663d61f22..ae5dfebdf 100644--- a/htroot/xml/util/getpageinfo_p.java+++ b/htroot/xml/util/getpageinfo_p.java@@ -46,11 +46,18 @@ public class getpageinfo_p {public static serverObjects respond(final httpRequestHeader header, final serverObjects post, final serverSwitch<?> env) {final plasmaSwitchboard sb = (plasmaSwitchboard) env;final serverObjects prop = new serverObjects();- prop.put("sitemap", "");- prop.put("title", "");- prop.put("favicon","");++ // avoid UNRESOLVED PATTERN+ prop.put("title", "");+ prop.put("desc", "");+ prop.put("lang", "");prop.put("robots-allowed", "3"); //unknown- String actions="title";+ prop.put("sitemap", "");+ prop.put("favicon","");++ // default actions+ String actions="title,robots";+if(post!=null && post.containsKey("url")){if(post.containsKey("actions"))actions=post.get("actions");diff --git a/source/de/anomic/htmlFilter/htmlFilterContentScraper.java b/source/de/anomic/htmlFilter/htmlFilterContentScraper.javaindex 91e5d0964..ea3a9ed16 100644--- a/source/de/anomic/htmlFilter/htmlFilterContentScraper.java+++ b/source/de/anomic/htmlFilter/htmlFilterContentScraper.java@@ -395,7 +395,8 @@ public class htmlFilterContentScraper extends htmlFilterAbstractScraper implemenif (s.length() == 0) {return getTitle().toLowerCase().split(splitrex);}- if (s.contains(",")) return s.split(",");+ if (s.contains(",")) return s.split(" |,");+ if (s.contains(";")) return s.split(" |;");return s.split("\\s");}