A search-warrant is an order in writing, issued by a justice or other magistrate , in the name of the state, directed to a sheriff, constable, or other officer, commanding him to search a specified house, shop, or other premises, for per- sonal property alleged to have been stolen, or for unlawful goods, and to bring the same, when found, before the magistrate, and usually also the body of the person occupying the premises, to be dealt with according to law. Pen. Code Cal.