def handle_search_error(e: Exception) -> None:
    """
    Handle search errors by logging them appropriately.

    Args:
        e (Exception): The exception that occurred

    """
    if isinstance(e, ValueError):
        logger.error(f"Invalid search parameters: {e}")
    else:
        logger.error(f"Error during search operation: {e}")

    Handle search errors by logging them appropriately.

    Args:
        e (Exception): The exception that occurred

    
llama-index-integrations/vector_stores/llama-index-vector-stores-azureaisearch/llama_index/vector_stores/azureaisearch/azureaisearch_utils.py