aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2020-07-27 16:45:06 -0700
committerBryan Newbold <bnewbold@archive.org>2020-07-27 16:45:06 -0700
commit1952f59f9f283e0f0758657c250a9f7a786d3bdc (patch)
tree4b708d593b6617c2a479f66b6b7f3a231db02bc6
parentc0e6ab2d70a56374aefb93643a76b833e22188c4 (diff)
downloadfatcat-scholar-1952f59f9f283e0f0758657c250a9f7a786d3bdc.tar.gz
fatcat-scholar-1952f59f9f283e0f0758657c250a9f7a786d3bdc.zip
search: smaller default result set
-rw-r--r--fatcat_scholar/search.py2
-rw-r--r--notes/scaling_works.md3
2 files changed, 4 insertions, 1 deletions
diff --git a/fatcat_scholar/search.py b/fatcat_scholar/search.py
index 1a543d9..c0e8189 100644
--- a/fatcat_scholar/search.py
+++ b/fatcat_scholar/search.py
@@ -223,7 +223,7 @@ def do_fulltext_search(
raise ValueError(f"Unknown 'sort_order' parameter value: '{query.sort_order}'")
# Sanity checks
- limit = min((int(query.limit or 25), 100))
+ limit = min((int(query.limit or 15), 100))
offset = max((int(query.offset or 0), 0))
if offset > deep_page_limit:
# Avoid deep paging problem.
diff --git a/notes/scaling_works.md b/notes/scaling_works.md
index 3de4214..6537596 100644
--- a/notes/scaling_works.md
+++ b/notes/scaling_works.md
@@ -83,6 +83,9 @@ processing times:
- ensure transform output is sorted by key
=> <https://www.elastic.co/guide/en/elasticsearch/reference/current/tune-for-disk-usage.html#_put_fields_in_the_same_order_in_documents>
- ensure number of cores is large
+- return fewer results (15 vs. 25)
+ => less highlighting
+ => fewer thumbnails to catch
## Work Grouping