There’s a very good reason we have the process of investigate > accuse > bring to court and in those cases the accused party is detained while the facts are reviewed and the matter decided. Judge-issued search warrants are done as a part of the investigation and the investigation itself is secret.