The search bar is available by default when the portal is created, but you can remove it by following these steps:
Go to the Portal Tables
Click on a Linked Records field
Go to the User Actions section
Turn on or off the Search bar toggle
I want to hide the search bar in my portal.