Added a retry action for failed searches.