mirror of
https://github.com/MarginaliaSearch/MarginaliaSearch.git
synced 2025-10-05 21:22:39 +02:00
Compare commits
3 Commits
deploy-030
...
deploy-031
Author | SHA1 | Date | |
---|---|---|---|
|
452b5731d9 | ||
|
c91cf49630 | ||
|
8503030f18 |
@@ -94,7 +94,7 @@ public class IndexQueryExecution {
|
||||
// to avoid backpressure, instead steal work into the lookup thread
|
||||
// in this scenario
|
||||
|
||||
if (evaluationJobCounter > indexValuationThreads * 8) {
|
||||
if (evaluationJobCounter > indexValuationThreads * 2) {
|
||||
stealWork = true;
|
||||
}
|
||||
else {
|
||||
|
@@ -199,16 +199,19 @@ public class SearchOperator {
|
||||
return new EdgeUrl("https", new EdgeDomain("breezewiki.com"), null, "/" + subdomain + path.substring(wikiIndex), null);
|
||||
}
|
||||
}
|
||||
/*
|
||||
else if (topdomain.equals("medium.com")) {
|
||||
if (!subdomain.isBlank()) {
|
||||
return new EdgeUrl("https", new EdgeDomain("scribe.rip"), null, path, null);
|
||||
int slashIndex = path.indexOf("/", 1);
|
||||
if (slashIndex >= 0) {
|
||||
if (!subdomain.isBlank()) {
|
||||
return new EdgeUrl("https", new EdgeDomain("scribe.rip"), null, path, null);
|
||||
}
|
||||
else {
|
||||
String article = path.substring(slashIndex);
|
||||
return new EdgeUrl("https", new EdgeDomain("scribe.rip"), null, article, null);
|
||||
}
|
||||
}
|
||||
else {
|
||||
String article = path.substring(path.indexOf("/", 1));
|
||||
return new EdgeUrl("https", new EdgeDomain("scribe.rip"), null, article, null);
|
||||
}
|
||||
|
||||
}
|
||||
}*/
|
||||
return url;
|
||||
}
|
||||
|
||||
|
@@ -230,19 +230,19 @@ public class SearchOperator {
|
||||
return new EdgeUrl("https", new EdgeDomain("breezewiki.com"), null, "/" + subdomain + path.substring(wikiIndex), null);
|
||||
}
|
||||
}
|
||||
/*
|
||||
else if (topdomain.equals("medium.com")) {
|
||||
if (!subdomain.isBlank()) {
|
||||
return new EdgeUrl("https", new EdgeDomain("scribe.rip"), null, path, null);
|
||||
}
|
||||
else {
|
||||
int slashIndex = path.indexOf("/", 1);
|
||||
if (slashIndex >= 0) {
|
||||
int slashIndex = path.indexOf("/", 1);
|
||||
if (slashIndex >= 0) {
|
||||
if (!subdomain.isBlank()) {
|
||||
return new EdgeUrl("https", new EdgeDomain("scribe.rip"), null, path, null);
|
||||
}
|
||||
else {
|
||||
String article = path.substring(slashIndex);
|
||||
return new EdgeUrl("https", new EdgeDomain("scribe.rip"), null, article, null);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}*/
|
||||
return url;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user