It doesn't really make that big a difference unless the police officer found something that's being used as evidence against you.  If the search was illegal, you can stop the prosecution from using anything found because of it, and anything else the police found that the evidence led them to.  The law applies the "exclusionary rule" to illegally seized evidence, and "the fruit of the poisonous tree."If you were somehow damaged financially by the search itself, it's possible that you could file a lawsuit for violation of your civil rights.Either way, you need to have all the detailed facts of the incident reviewed by an attorney, for advice you can rely on.  One place to find a qualified lawyer is our website, http://attorneypages.com