Manual:Hooks/SpecialSearchGo

Details
$title will be the Title object of the page searched for if it exists. This hook only runs if the page being searched for exists.