summaryrefslogtreecommitdiff
path: root/htroot/IndexControlURLs_p.html
diff options
context:
space:
mode:
authorMichael Peter Christen <mc@yacy.net>2012-09-10 14:30:44 +0200
committerMichael Peter Christen <mc@yacy.net>2012-09-10 14:30:44 +0200
commit5df553c152c2002c56ef0d8f06ee516005786b83 (patch)
tree5bcc8dbdd82ee0fca802776b414fdb591c9d6676 /htroot/IndexControlURLs_p.html
parent4634f0e6266a323d3b8714d4369551aa01b0e522 (diff)
- added a json writer for solr (yes there was one using xslt but this
one writes the same way as yacysearch.json) - using the new json solr result to change the ajax search in IndexControlURLs to the new solr search
Diffstat (limited to 'htroot/IndexControlURLs_p.html')
-rw-r--r--htroot/IndexControlURLs_p.html3
1 files changed, 2 insertions, 1 deletions
diff --git a/htroot/IndexControlURLs_p.html b/htroot/IndexControlURLs_p.html
index 500431e28..77abc40a3 100644
--- a/htroot/IndexControlURLs_p.html
+++ b/htroot/IndexControlURLs_p.html
@@ -21,7 +21,8 @@ function search(query) {
else if (window.ActiveXObject) { // IE
self.xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP");
}
- self.xmlHttpReq.open('GET', "yacysearch.json?verify=false&resource=local&maximumRecords=100&nav=none&query=" + query + "+inurl:" + query, true);
+ self.xmlHttpReq.open('GET', "/solr/select?q=sku:\"" + query + "\" OR host_s:\"" + query + "\" OR host_dnc_s:\"" + query + "\" OR host_organization_s:\"" + query + "\" OR host_organizationdnc_s:\"" + query + "\" OR host_subdomain_s:\"" + query + "\"&start=0&rows=100&wt=json", true);
+ //self.xmlHttpReq.open('GET', "yacysearch.json?verify=false&resource=local&maximumRecords=100&nav=none&query=" + query + "+inurl:" + query, true);
self.xmlHttpReq.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
self.xmlHttpReq.onreadystatechange = function() {
if (self.xmlHttpReq.readyState == 4) {