Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
- fix for multi-word search for locations - changed description text to 'title' entity (subject is a list of keywords and was very messed) - added ViewFile in location pop-up
orbiter6ec9ced4cd57
diff --git a/htroot/yacysearch_location.html b/htroot/yacysearch_location.htmlindex a55c37b7f..1e9e3a33d 100644--- a/htroot/yacysearch_location.html+++ b/htroot/yacysearch_location.html@@ -44,9 +44,10 @@);#(initsearch)#::- searchLayer_co = new OpenLayers.Layer.GeoRSS('GeoRSS', path_cosearch + '#[query]#', {'icon':marker_co});+ var query = '#[query]#'.replace(' ', '+');+ searchLayer_co = new OpenLayers.Layer.GeoRSS('GeoRSS', path_cosearch + query, {'icon':marker_co});map.addLayer(searchLayer_co);- searchLayer_md = new OpenLayers.Layer.GeoRSS('GeoRSS', path_mdsearch + '#[query]#', {'icon':marker_md});+ searchLayer_md = new OpenLayers.Layer.GeoRSS('GeoRSS', path_mdsearch + query, {'icon':marker_md});map.addLayer(searchLayer_md);#(/initsearch)#}diff --git a/htroot/yacysearch_location.java b/htroot/yacysearch_location.javaindex 93a362245..383057cf6 100644--- a/htroot/yacysearch_location.java+++ b/htroot/yacysearch_location.java@@ -69,6 +69,9 @@ public class yacysearch_location {int placemarkCounter = 0;if (search_query) {Set<Location> locations = LibraryProvider.geoLoc.find(query, true);+ for (String qp: query.split(" ")) {+ locations.addAll(LibraryProvider.geoLoc.find(qp, true));+ }for (Location location: locations) {// write for all locations a point to this messageprop.put("kml_placemark_" + placemarkCounter + "_location", location.getName());diff --git a/htroot/yacysearch_location.rss b/htroot/yacysearch_location.rssindex 6543a1149..e58547c12 100644--- a/htroot/yacysearch_location.rss+++ b/htroot/yacysearch_location.rss@@ -19,7 +19,7 @@<title><![CDATA[#[location]#]]></title><link>#[url]#</link><pubDate>#[date]#</pubDate>- <summary><![CDATA[#[subject]#]]></summary>+ <summary><![CDATA[<a href="#[url]#">#[url]#</a><br/><br/>#[name]#<br/><br/><a href="ViewFile.html?url=#[url]#">[metadata]</a>]]></summary><geo:long>#[lon]#</geo:long><geo:lat>#[lat]#</geo:lat></item>diff --git a/source/de/anomic/yacy/yacyClient.java b/source/de/anomic/yacy/yacyClient.javaindex 6b02612e9..e4df355c8 100644--- a/source/de/anomic/yacy/yacyClient.java+++ b/source/de/anomic/yacy/yacyClient.java@@ -507,7 +507,7 @@ public final class yacyClient {// prepare requestfinal List<Part> post = new ArrayList<Part>();- post.add(new DefaultCharsetStringPart("query", query.replaceAll(" ", "+")));+ post.add(new DefaultCharsetStringPart("query", query));post.add(new DefaultCharsetStringPart("startRecord", Integer.toString(startRecord)));post.add(new DefaultCharsetStringPart("maximumRecords", Long.toString(maximumRecords)));post.add(new DefaultCharsetStringPart("verify", verify ? "true" : "false"));