Open an Explorer window in the location where you want to search. Click or tap in the Search box. A Search tab appears with advanced options. Click or tap the This PC, Current folder, or All subfolders to specify a search location.
Choose Change folder and search options from the pull-down menu. Make sure Quick access (instead of This PC) is selected from the list after Open File Explorer to. Uncheck Show recently used files in Quick access option and Show frequently used folders in Quick access option under the Privacy area.
Here's how to do so:
To Pin Recent Folders to Quick Access in Windows 10,
Right-click on the pinned Recent folders entry in the left pane of File Explorer, and select Unpin from Quick Access from the context menu. Or, right-click the Recent folders item under Frequent Folders in the Quick Access folder.