The search box which is located at the top right corner of the open window is limited to the selected folder but one can expand the search per user. But when the onedrive options is selected the search is automatically expanded to include every folder on the hard drive.