web search done right
fix crash on second page. the final ranking pipeline should not offset results as this pipeline just ranks the results on the page being shown to the user. the correct offsets has thus already been applied at this point.
Mikkel Denkerccb245f08e87
diff --git a/core/src/searcher/api/mod.rs b/core/src/searcher/api/mod.rsindex c233e63c..5e8711b2 100644--- a/core/src/searcher/api/mod.rs+++ b/core/src/searcher/api/mod.rs@@ -376,7 +376,10 @@ impl ApiSearcher {.retrieve_webpages(&search_query.query, &top_websites).await;- let mut search_query = query.clone();+ let mut search_query = SearchQuery {+ page: 0,+ ..query.clone()+ };#[cfg(feature = "libtorch")]let pipeline: RankingPipeline<RetrievedWebpageRanking> = RankingPipeline::reranker(