add env file
This commit is contained in:
@@ -20,15 +20,15 @@ def search(
|
||||
page_size: int = 25,
|
||||
elastic_client: Elasticsearch,
|
||||
) -> PaginatedResult:
|
||||
if page_size > MAX_PAGE_SIZE:
|
||||
page_size = MAX_PAGE_SIZE
|
||||
|
||||
s = Search(
|
||||
using=elastic_client,
|
||||
index=index,
|
||||
)
|
||||
s.update_from_dict(query)
|
||||
|
||||
if page_size > MAX_PAGE_SIZE:
|
||||
page_size = MAX_PAGE_SIZE
|
||||
s.extra(size=page_size)
|
||||
s.extra(size=page_size)
|
||||
|
||||
try:
|
||||
r = s.execute()
|
||||
|
||||
Reference in New Issue
Block a user