Rewrite search_exact for clarity