From 0a3893e4711e447bcd4d51bfb20f8bdfe9958047 Mon Sep 17 00:00:00 2001 From: Allison Suarez Miranda Date: Mon, 29 Nov 2021 08:59:30 -0800 Subject: [PATCH] fix: added page size argument for compatibility Signed-off-by: Allison Suarez Miranda --- search/search_service/proxy/es_search_proxy.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/search/search_service/proxy/es_search_proxy.py b/search/search_service/proxy/es_search_proxy.py index 5ea0e7b9b2..e68e7bc23e 100644 --- a/search/search_service/proxy/es_search_proxy.py +++ b/search/search_service/proxy/es_search_proxy.py @@ -90,12 +90,14 @@ def __init__(self, *, host: str = None, user: str = '', password: str = '', - client: Elasticsearch = None) -> None: + client: Elasticsearch = None, + page_size: int = 10) -> None: if client: self.elasticsearch = client else: http_auth = (user, password) if user else None self.elasticsearch = Elasticsearch(host, http_auth=http_auth) + self.page_size = page_size def _build_term_query(self, resource: Resource, query_term: str) -> Optional[Q]: """