The complainant must pay the fees of a search warrant before he is entitled to the same, and must also pay the officer his fees for the execution before the same is executed; and if, on the hearing, it appears that there was no probable cause for believing the existence of the grounds on which the warrant was issued, the whole costs may be taxed against the complainant and an execution issued therefor, returnable on any day the judge or the magistrate may direct.