summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorMichael Christen <Orbiter@users.noreply.github.com>2026-05-25 22:08:29 +0200
committerGitHub <noreply@github.com>2026-05-25 22:08:29 +0200
commitff15bf708386389c95ca908da5c0a17fe01e47e9 (patch)
tree45e38f3ab8677821b049bedf76d74f66b1020c4d /source
parent18053d6254c077d95d51cd9f554aaa3be0326b47 (diff)
parent7c0a00aad315a05194e1e075c36f80d21f3bcff4 (diff)
Merge pull request #783 from songproducer/improve/late-page-quality
fix: scale nodeStack capacity with query offset so late pages aren't …
Diffstat (limited to 'source')
-rw-r--r--source/net/yacy/search/query/SearchEvent.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/net/yacy/search/query/SearchEvent.java b/source/net/yacy/search/query/SearchEvent.java
index 582f0e02f..7bc87f39d 100644
--- a/source/net/yacy/search/query/SearchEvent.java
+++ b/source/net/yacy/search/query/SearchEvent.java
@@ -354,7 +354,7 @@ public final class SearchEvent implements ScoreMapUpdatesListener {
this.imagePageCounter = query.offset;
}
this.loader = loader;
- this.nodeStack = new WeakPriorityBlockingQueue<>(max_results_node, false);
+ this.nodeStack = new WeakPriorityBlockingQueue<>(max_results_node + (query != null ? query.offset + query.itemsPerPage() : 0), false);
this.maxExpectedRemoteReferences = new AtomicInteger(0);
this.expectedRemoteReferences = new AtomicInteger(0);
this.excludeintext_image = Switchboard.getSwitchboard().getConfigBool("search.excludeintext.image", true);