Skip to content

Commit

Permalink
fix: error on search with pagination (amundsen-io#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 and Hans Adriaans committed Jun 30, 2022
1 parent 46cf684 commit ea4e2de
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 ea4e2de

Please sign in to comment.