Skip to content

Commit

Permalink
fix: added page size argument for compatibility (amundsen-io#1593)
Browse files Browse the repository at this point in the history
Signed-off-by: Allison Suarez Miranda <asuarezmiranda@lyft.com>
  • Loading branch information
allisonsuarez authored and Zachary Ruiz committed May 13, 2022
1 parent 9206566 commit 154b4fd
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 @@ -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]:
"""
Expand Down

0 comments on commit 154b4fd

Please sign in to comment.