From 3a24dd8290996f507b454751f62130744094fc09 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Fri, 3 Apr 2020 16:40:14 -0700 Subject: switch to 25 results by default --- fatcat_covid19/search.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fatcat_covid19/search.py b/fatcat_covid19/search.py index 8b90a4a..0baeb6d 100644 --- a/fatcat_covid19/search.py +++ b/fatcat_covid19/search.py @@ -12,7 +12,7 @@ import requests from flask import abort, flash from fatcat_covid19.webface import app -def do_search(index, request, limit=30, offset=0, deep_page_limit=2000): +def do_search(index, request, limit=25, offset=0, deep_page_limit=2000): # Sanity checks if limit > 100: @@ -64,7 +64,7 @@ def do_search(index, request, limit=30, offset=0, deep_page_limit=2000): "offset": offset, "deep_page_limit": deep_page_limit} -def do_fulltext_search(q, limit=30, offset=0): +def do_fulltext_search(q, limit=25, offset=0): #print("Search hit: " + q) if limit > 100: -- cgit v1.2.3