The optimal search problem with probability of detection less than one