"""
Test all search handlers with a simple query.
"""

from execution.search_executor import SearchExecutor

def main():
    """Test all search handlers."""
    # Initialize the search executor
    executor = SearchExecutor()
    
    # Execute a simple search
    results = executor.execute_search({
        'raw_query': 'quantum computing', 
        'enhanced_query': 'quantum computing'
    })
    
    # Print results by source
    print(f'Results by source: {[engine for engine, res in results.items() if res]}')
    
    # Print details
    print('\nDetails:')
    for engine, res in results.items():
        print(f'{engine}: {len(res)} results')
        if res:
            print(f'  Sample result: {res[0]}')
    
    return results

if __name__ == "__main__":
    main()
