From 9f27bdc3ca41e09a090093bc36f48851fcc4fc42 Mon Sep 17 00:00:00 2001 From: zsloan Date: Wed, 26 Jun 2024 21:51:01 +0000 Subject: Increase max number of results to 50000 for Xapian search This change needs to be accompanied by a change in GN2! If it's lower than the GN2 MAX_SEARCH_RESULTS value, searches will throw an error. --- gn3/api/search.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gn3') diff --git a/gn3/api/search.py b/gn3/api/search.py index 4e35867..2bb7058 100644 --- a/gn3/api/search.py +++ b/gn3/api/search.py @@ -264,7 +264,7 @@ def search_results(): if page < 1: abort(404, description="Requested page does not exist") results_per_page = args.get("per_page", default=100, type=int) - maximum_results_per_page = 10000 + maximum_results_per_page = 50000 if results_per_page > maximum_results_per_page: abort(400, description="Requested too many search results") -- cgit v1.2.3