diff options
-rw-r--r-- | fatcat_scholar/search.py | 2 | ||||
-rw-r--r-- | notes/scaling_works.md | 3 |
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 |