diff --git a/htroot/yacysearch_location.html b/htroot/yacysearch_location.html index 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.java index 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 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 message prop.put("kml_placemark_" + placemarkCounter + "_location", location.getName()); diff --git a/htroot/yacysearch_location.rss b/htroot/yacysearch_location.rss index 6543a1149..e58547c12 100644 --- a/htroot/yacysearch_location.rss +++ b/htroot/yacysearch_location.rss @@ -19,7 +19,7 @@ <![CDATA[#[location]#]]> #[url]# #[date]# - + #[url]#

#[name]#

[metadata]]]>
#[lon]# #[lat]# diff --git a/source/de/anomic/yacy/yacyClient.java b/source/de/anomic/yacy/yacyClient.java index 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 request final List post = new ArrayList(); - 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"));