diff options
author | zsloan | 2024-06-26 21:51:01 +0000 |
---|---|---|
committer | zsloan | 2024-06-26 21:51:01 +0000 |
commit | 9f27bdc3ca41e09a090093bc36f48851fcc4fc42 (patch) | |
tree | ff640c3c0e9e9f7752c1b03514e9288a2a8f9e06 /gn3 | |
parent | a2eb0c2dff1ab93ff88f2c22754f4d3fc593078f (diff) | |
download | genenetwork3-9f27bdc3ca41e09a090093bc36f48851fcc4fc42.tar.gz |
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.
Diffstat (limited to 'gn3')
-rw-r--r-- | gn3/api/search.py | 2 |
1 files changed, 1 insertions, 1 deletions
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") |