Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

fix for multi-word search (makes a replace-all)

orbiterf2db0d248bfe
diff --git a/htroot/yacy/ui/js/yacyui-portalsearch.js b/htroot/yacy/ui/js/yacyui-portalsearch.js
index d18faaaa1..7ea9043c9 100644
--- a/htroot/yacy/ui/js/yacyui-portalsearch.js
+++ b/htroot/yacy/ui/js/yacyui-portalsearch.js
@@ -234,7 +234,7 @@ function yacysearch(global) {
function(json, status) {
if (json[0]) data = json[0];
else data = json;
- var searchTerms = data.channels[0].searchTerms.replace(/\+/," ");
+ var searchTerms = data.channels[0].searchTerms.replace(/\+/g," ");
if(ycurr != searchTerms)
return false;
$('#ypopup').empty();