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 Hans Adriaans committed Jun 30, 2022
1 parent 44e66b6 commit c236165
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 c236165

Please sign in to comment.