summaryrefslogtreecommitdiff
path: root/htroot/js/yacysearch.js
diff options
context:
space:
mode:
authororbiter <orbiter@6c8d7289-2bf4-0310-a012-ef5d649a1542>2007-08-26 18:18:35 +0000
committerorbiter <orbiter@6c8d7289-2bf4-0310-a012-ef5d649a1542>2007-08-26 18:18:35 +0000
commite332b844b2c0d4d41bef0add8f3f5de140839cc7 (patch)
tree80ed36711f3d5575a4db94be67c5efa0a343eee0 /htroot/js/yacysearch.js
parenta34d9b86092bcb9c295be7626be2dd5a180665e2 (diff)
- enhanced remote search: during waiting time for remote crawls
some urls are fetched so the url cache can be filled with these urls - the url-prefetch is used to sort out some unresolved urls - the snippet-fetcher is triggered with the search event id. This is used to remove missing snippets from the search cache so they will not be displayed again git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@4060 6c8d7289-2bf4-0310-a012-ef5d649a1542
Diffstat (limited to 'htroot/js/yacysearch.js')
-rw-r--r--htroot/js/yacysearch.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/htroot/js/yacysearch.js b/htroot/js/yacysearch.js
index 826ce7fad..f93c4e43c 100644
--- a/htroot/js/yacysearch.js
+++ b/htroot/js/yacysearch.js
@@ -51,12 +51,12 @@ function Progressbar(length, parent) {
parent.appendChild(this.element);
}
-function AllTextSnippets(query) {
+function AllTextSnippets(query, eventID) {
var span = document.getElementsByTagName("span");
for(var x=0;x<span.length;x++) {
if (span[x].className == 'snippetLoading') {
var url = document.getElementById("url" + span[x].id.substring(1));
- requestTextSnippet(url,query);
+ requestTextSnippet(url, query, eventID);
}
}
}
@@ -79,9 +79,9 @@ function AllImageSnippets(urls, query) {
}
}
-function requestTextSnippet(url, query){
+function requestTextSnippet(url, query, eventID){
var request=createRequestObject();
- request.open('get', '/xml/snippet.xml?url=' + escape(url) + '&remove=true&media=text&search=' + escape(query),true);
+ request.open('get', '/xml/snippet.xml?url=' + escape(url) + '&remove=true&media=text&search=' + escape(query) + '&eventID=' + eventID,true);
request.onreadystatechange = function () {handleTextState(request)};
request.send(null);
}