Do the police always need a warrant to do a search?

If an officer believes that someone they have detained (or are about to lawfully detain) might have a dangerous weapon, then the officer may search the person solely for the purpose of looking for a weapon. Otherwise, unless you consent to the search, officers usually cannot search you or your property without a warrant.