How to modify search bar to only search for products?

I want my search bar to only search for products and nothing else. As shown in the photo, my search bar searches both products and pages how do i make it only search for products?

Hello @Suoshie
Its Artzen Technologies! We will be happy to help you today.

You can definitely hide pages from search and only search products by avoiding additional pages. You have to follow the below steps to achieve the desired result.

Please follow the steps below: -
Step 1: Go to header.liquid file, find ‘routes.search_url’ and add code here:
Screenshot1 -

Step 2: Go to main-search.liquid file, find ‘routes.search_url’ and add code here:
Screenshot2-

Code:

Let me know if need further assistance
Regards,
Artzen Technologies