A 170.6 challenge can be effective though filed after the challenged judge issues a search warrant in a criminal case.  The warrant is issued on an ex parte basis and so the judge decides no contested issue of fact in issuing the warrant.  Here, the 170.6 challenge was timely because filed more than 5 days before the hearing on the hearing on the motion challenging the warrant.