diff --git a/search/search_service/proxy/es_search_proxy.py b/search/search_service/proxy/es_search_proxy.py index 5d3c18ae8a..addd896fd8 100644 --- a/search/search_service/proxy/es_search_proxy.py +++ b/search/search_service/proxy/es_search_proxy.py @@ -284,7 +284,9 @@ def execute_queries(self, queries: Dict[Resource, Q], # pagination start_from = page_index * results_per_page - search = search[start_from:results_per_page] + end = results_per_page * (page_index + 1) + + search = search[start_from:end] multisearch = multisearch.add(search)