|
|
@ -21,8 +21,7 @@ function search(query) {
|
|
|
|
else if (window.ActiveXObject) { // IE
|
|
|
|
else if (window.ActiveXObject) { // IE
|
|
|
|
self.xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP");
|
|
|
|
self.xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
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', "/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 + "\" OR url_paths_sxt:\"" + query + "\"&start=0&rows=100&wt=yjson", 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.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
|
|
|
|
self.xmlHttpReq.onreadystatechange = function() {
|
|
|
|
self.xmlHttpReq.onreadystatechange = function() {
|
|
|
|
if (self.xmlHttpReq.readyState == 4) {
|
|
|
|
if (self.xmlHttpReq.readyState == 4) {
|
|
|
|