Skip to content

Commit

Permalink
fix: error on search with pagination (#1622)
Browse files Browse the repository at this point in the history
* loggigng

Signed-off-by: Allison Suarez Miranda <asuarezmiranda@lyft.com>

* fixed dummy bug of the century

Signed-off-by: Allison Suarez Miranda <asuarezmiranda@lyft.com>

* remove leftover code

Signed-off-by: Allison Suarez Miranda <asuarezmiranda@lyft.com>
  • Loading branch information
allisonsuarez authored Dec 15, 2021
1 parent 7d94e68 commit 9966fbc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion search/search_service/proxy/es_search_proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 9966fbc

Please sign in to comment.