Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
/xml/util/getpageinfo_p.java: fixed problem with empty tags and added recognition of compound tags e.g. "DER SPIEGEL"
apfelmaennchen4f9b8a6ef88a
diff --git a/htroot/xml/util/getpageinfo_p.java b/htroot/xml/util/getpageinfo_p.javaindex 6b9e9c675..aa9841ac6 100644--- a/htroot/xml/util/getpageinfo_p.java+++ b/htroot/xml/util/getpageinfo_p.java@@ -100,10 +100,19 @@ public class getpageinfo_p {// put keywordsString list[]=scraper.getKeywords();+ int count = 0;for(int i=0;i<list.length;i++){- prop.putHTML("tags_"+i+"_tag", list[i]);+ String tag = list[i];+ if (!tag.equals("")) {+ while (i<(list.length-1) && !list[i+1].equals("")) {+ i++;+ tag += " "+list[i];+ }+ prop.putHTML("tags_"+count+"_tag", tag);+ count++;+ }}- prop.put("tags", list.length);+ prop.put("tags", count);} catch (MalformedURLException e) { /* ignore this */} catch (IOException e) { /* ignore this */