diff --git a/services/search.py b/services/search.py index fd9ac6e0..1277154c 100644 --- a/services/search.py +++ b/services/search.py @@ -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):