I've only ever had my luggage searched at customs in the states...multiple times, very thorough. I think they were looking for pirated DVDs or something.
It was only afterwards that I realised I'd been reading the hunger games on my kindle at the time (which they did get as far as turning on); pretty sure that's illegal. Oh well.