debug(search.py): pagination 100 items
All checks were successful
Deploy on push / deploy (push) Successful in 53s
All checks were successful
Deploy on push / deploy (push) Successful in 53s
This commit is contained in:
parent
a394aea521
commit
c30774353c
|
@ -536,13 +536,16 @@ async def search_text_paginated(text: str, return_limit: int = 20, offset: int =
|
|||
full_limit: Maximum results to fetch and cache
|
||||
|
||||
Returns:
|
||||
tuple: (results_for_page, total_results_count)
|
||||
list: Results for the current page
|
||||
"""
|
||||
results = []
|
||||
total = 0
|
||||
if search_service.available:
|
||||
results, total = await search_service.search_with_cache(text, full_limit, return_limit, offset)
|
||||
return results, total
|
||||
|
||||
# Return just the results list instead of the tuple
|
||||
# This is what GraphQL expects for the load_shouts_search field
|
||||
return results
|
||||
|
||||
|
||||
async def initialize_search_index(shouts_data):
|
||||
|
|
Loading…
Reference in New Issue
Block a user