As per apnaqanoon, Section 97 of the CrPC, If the District Magistrate, SDM or Judicial Magistrate of the First Class has a reason to believe that a particular individual has been wrongfully detained,according to law/qanoon they may issue a search warrant.