Can police stop and search in Spain?

Can police stop and search in Spain? The police have the power to stop and search if it is necessary to help other bodies and persons who have legitimate reasons to ask the help of the police.

The police have the power to stop and search if it is necessary to help other bodies and persons who have legitimate reasons to ask the help of the police.