add env file

This commit is contained in:
2025-03-21 16:18:40 -03:00
parent d21144e045
commit 9d7ff8abf1
9 changed files with 28 additions and 31 deletions

View File

@@ -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()