Law enforcement is under NO DUTY to advise you of your rights in order to search you or your property. Nevertheless, law enforcement can only search you or your property under certain circumstances. This area of the law is very complicated and you should check with an attorney about your particular situation.
While you do have the right to refuse to be searched or have your property searched, there are situations where law enforcement can search you or your property without your consent. You should make it clear to law enforcement that you do not consent to the search, but that you will not resist the search. If law enforcement has a search warrant, ask for a copy of the warrant.