You have four options

Option 1: Give an auto-complete option to search in the current category

Option 2: Auto-update the search field to the current category (Search Scope)

Option 3: Search in the current category by default, but add a dropdown in the results page to change the scope of the search

Option 4: Add a “Search Within” dropdown next to the search box Implementing this is especially important for mobile users.