The search bar is available by default when the portal is created but you can remove this by following this instruction:
Go to the Portal Tables
Click on a Linked Records field
Go to the Portal Records section
Turn on Hide search bar from portal toggle