So true, never let them "search" out of your sight. Though if you complain and resist orders to leave, they will arrest you for interfering with a police officer. A no-win situation with these types.
You can always tell them to get a warrant.
Of course then the baggie of hash would certainly appear.