Before you are searched, the police officer should tell you:

that you must wait to be searched;
what law they are using and your rights;
their name and the station they work at;
why they chose you and what they are looking for;
and that you have the right to be given a form straight away, showing details of the stop and search.