They will have to justify the search at trial. Your attorney can move to have the evidence suppressed.
Did the police ask if they could search you?
Had you been smoking marijuana, or around anyone smoking it, any time that day or night? If so, you likely smelled of marijuana and in most states that should be sufficient probable casue for a search.
- Carl

