We didn't actually need it. It can all be done in search.php