|
|
@ -1200,7 +1200,7 @@ public final class plasmaSwitchboard extends serverAbstractSwitch implements ser
|
|
|
|
}
|
|
|
|
}
|
|
|
|
public void run() {
|
|
|
|
public void run() {
|
|
|
|
log.logDebug("snippetFetcher: try to get URL " + url);
|
|
|
|
log.logDebug("snippetFetcher: try to get URL " + url);
|
|
|
|
plasmaSnippetCache.result snippet = snippetCache.retrieve(url, queryhashes, true);
|
|
|
|
plasmaSnippetCache.result snippet = snippetCache.retrieve(url, queryhashes, true, 260);
|
|
|
|
if (snippet.line == null)
|
|
|
|
if (snippet.line == null)
|
|
|
|
log.logDebug("snippetFetcher: cannot get URL " + url + ". error(" + snippet.source + "): " + snippet.error);
|
|
|
|
log.logDebug("snippetFetcher: cannot get URL " + url + ". error(" + snippet.source + "): " + snippet.error);
|
|
|
|
else
|
|
|
|
else
|
|
|
@ -1315,7 +1315,7 @@ public final class plasmaSwitchboard extends serverAbstractSwitch implements ser
|
|
|
|
//addScoreForked(ref, gs, descr.split(" "));
|
|
|
|
//addScoreForked(ref, gs, descr.split(" "));
|
|
|
|
//addScoreForked(ref, gs, urlstring.split("/"));
|
|
|
|
//addScoreForked(ref, gs, urlstring.split("/"));
|
|
|
|
if (urlstring.matches(urlmask)) { //.* is default
|
|
|
|
if (urlstring.matches(urlmask)) { //.* is default
|
|
|
|
snippet = snippetCache.retrieve(url, queryhashes, false);
|
|
|
|
snippet = snippetCache.retrieve(url, queryhashes, false, 260);
|
|
|
|
if (snippet.source == plasmaSnippetCache.ERROR_NO_MATCH) {
|
|
|
|
if (snippet.source == plasmaSnippetCache.ERROR_NO_MATCH) {
|
|
|
|
// suppress line: there is no match in that resource
|
|
|
|
// suppress line: there is no match in that resource
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
@ -1401,7 +1401,7 @@ public final class plasmaSwitchboard extends serverAbstractSwitch implements ser
|
|
|
|
plasmaSnippetCache.result snippet;
|
|
|
|
plasmaSnippetCache.result snippet;
|
|
|
|
while ((acc.hasMoreElements()) && (i < count)) {
|
|
|
|
while ((acc.hasMoreElements()) && (i < count)) {
|
|
|
|
urlentry = acc.nextElement();
|
|
|
|
urlentry = acc.nextElement();
|
|
|
|
snippet = snippetCache.retrieve(urlentry.url(), hashes, false);
|
|
|
|
snippet = snippetCache.retrieve(urlentry.url(), hashes, false, 260);
|
|
|
|
if (snippet.source == plasmaSnippetCache.ERROR_NO_MATCH) {
|
|
|
|
if (snippet.source == plasmaSnippetCache.ERROR_NO_MATCH) {
|
|
|
|
// suppress line: there is no match in that resource
|
|
|
|
// suppress line: there is no match in that resource
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|