1
1
mirror of https://github.com/MarginaliaSearch/MarginaliaSearch.git synced 2025-10-05 21:22:39 +02:00

Compare commits

...

2 Commits

Author SHA1 Message Date
Viktor Lofgren
744f7d3ef7 (search) Fix rare exception in scribe.rip substitution 2025-07-27 19:34:03 +02:00
Viktor Lofgren
215e12afe9 (index) Shrink query buffer size 2025-07-27 17:33:46 +02:00
2 changed files with 6 additions and 3 deletions

View File

@@ -76,7 +76,7 @@ public class IndexQueryExecution {
}
private void lookup(IndexQuery query) {
final LongQueryBuffer buffer = new LongQueryBuffer(8192);
final LongQueryBuffer buffer = new LongQueryBuffer(1024);
try {
while (query.hasMore() && budget.hasTimeLeft()) {

View File

@@ -235,8 +235,11 @@ public class SearchOperator {
return new EdgeUrl("https", new EdgeDomain("scribe.rip"), null, path, null);
}
else {
String article = path.substring(path.indexOf("/", 1));
return new EdgeUrl("https", new EdgeDomain("scribe.rip"), null, article, null);
int slashIndex = path.indexOf("/", 1);
if (slashIndex >= 0) {
String article = path.substring(slashIndex);
return new EdgeUrl("https", new EdgeDomain("scribe.rip"), null, article, null);
}
}
}